C++ v8设置手柄<;价值>;阵列如何?

C++ v8设置手柄<;价值>;阵列如何?,c++,window,v8,C++,Window,V8,我想设置数组的句柄。我是v8的初学者,我不知道如何设置它 例如,当我这样做时: Persistent<Context> fcontext Handle<Value> Arr = Array::New(0); Persistent<Function> Func; Handle<Value> result = Func->Call(fcontext->Global(), 0, Arr); Persistent fcontext 句柄Arr

我想设置数组的
句柄。我是v8的初学者,我不知道如何设置它
例如,当我这样做时:

Persistent<Context> fcontext
Handle<Value> Arr = Array::New(0);
Persistent<Function> Func;
Handle<Value> result = Func->Call(fcontext->Global(), 0, Arr);
Persistent fcontext
句柄Arr=Array::New(0);
持久功能;
Handle result=Func->Call(fcontext->Global(),0,Arr);
我收到这个错误:

 error C2664: 'v8::Function::Call' : cannot convert parameter 3 from 'v8::Handle<T>' to 'v8::Handle<T> []'
    1>        with
    1>        [
    1>            T=v8::Value
    1>        ]
错误C2664:'v8::Function::Call':无法将参数3从'v8::Handle'转换为'v8::Handle[]
1> 与
1>        [
1> T=v8::Value
1>        ]
如何对具有1个元素的数组进行
句柄

常量无符号argc=1;
const unsigned argc = 1;
Local<Value> argv[argc] = { Local<Value>::New(String::New("Hello World!")) };
func->Call(Context::GetCurrent()->Global(), argc, argv);
本地argv[argc]={Local::New(String::New(“helloworld!”)}; func->Call(Context::GetCurrent()->Global(),argc,argv);
更多示例: