V8定義全局對象

1.準備導出C++類 class Point { public: Point(int x, int y) : x_(x), y_(y) { } int x_, y_; }; 2.設置JS訪問類成員函數 void GetPointX(Local<String> property, const PropertyCallbackInfo<Value>& in
相關文章
相關標籤/搜索