在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中的值呢?JavaScript
中间给PersonChoose赋值function GetPersonChoose()
{
return PersonChoose;
}在mfc程序中void CMapDialog::OnBnClickedButton3()
{
CWebPage web;
web.SetDocument(m_webBrowser.GetDocument());
CComVariant varResult;
web.CallJScript("GetPersonChoose",&varResult);
}问题我怎么取得varResult中的值呢?JavaScript
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货