使用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  阅读(125)  评论(0编辑  收藏  举报