File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -229,11 +229,15 @@ class V8EXPORT FunctionTemplate : public Template {
229
229
Handle<Signature> signature = Handle<Signature>(),
230
230
int length = 0);
231
231
}
232
+
232
233
```
233
234
234
- V8::Hanlde<FunctionTemplate>::New静态方法是用来将Native方法转换成v8引擎内部使用的方法模板上。从参数列表里可知用户的本地函数只需声明为InvocationCallback所示的函数原型就可以。参数列表为v8::Hanle<Arguments>,返回值是v8::Hanlde<v8::Value>。
235
- 这里有个老版本的示例:
236
- http://code.google.com/p/v8/source/browse/trunk/src/extensions/?r=8431
235
+ ` V8::Hanlde<FunctionTemplate>::New ` 静态方法是用来将Native方法转换成v8引擎内部使用的方法模板上。
236
+ 从参数列表里可知用户的本地函数只需声明为` InvocationCallback ` 所示的函数原型就可以。
237
+ 参数列表为` v8::Hanle<Arguments> ` ,返回值是` v8::Hanlde<v8::Value> ` 。
238
+
239
+ 这里有个老版本的示例:
240
+ http://code.google.com/p/v8/source/browse/trunk/src/extensions/?r=8431
237
241
238
242
# 理解v8的设计理念和重要概念
239
243
You can’t perform that action at this time.
0 commit comments