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
相关文章
相关标签/搜索