MFC中CWebPage类
在做一个地图匹配问题,添加了一个WebBrowser控件,想把在mfc界面输入的坐标信息传入JavaScript的函数里,有见过用
CWebPage web;
web.SetDocument(m_web.get_Document());
const CString funcName("mapping");
CComVariant varResult;
web.CallJScript(funcName, m_JD, m_WD, &varResult);
但我不知道是写一个js文件还是把js代码嵌到html里,还有这个文件应该放在哪里。我是用的是vs2015
有了解的大神解答下,谢谢!