使用DOM执行JS脚本和Function

oDocument.parentWindow.execScript "function sum(x,y) {return x+y;}"

 

Msgbox oDocument.parentWindow.Sum(2,3)

posted @ 2012-08-04 20:58  dushuai  阅读(130)  评论(0)    收藏  举报