mfc调用程序怎么获得javascript返回值为数组的值
在js中定义
var PersonChoose = new Array(20);
中间给PersonChoose赋值
function GetPersonChoose()
{
return PersonChoose;
}
在mfc程序中
void CMapDialog::OnBnClickedButton3()
{
CWebPage web;
web.SetDocument(m_webBrowser.GetDocument());
CComVariant varResult;
web.CallJScript("GetPersonChoose",&varResult);
}
问题我怎么取得varResult中的值呢?