在弹出窗口中未定义Javascript函数 [英] Javascript function undefined in pop up windows
本文介绍了在弹出窗口中未定义Javascript函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< div id ="printContent">
< javascript>
GetInfo(@ varA,@ varB)
</javascritpt>
</div>
< buttonönClick="print()">打印</button>
当单击打印"按钮时,将弹出新窗口以打印div printContent,以某种方式将未定义javascript GetInfo()击.
<div id="printContent">
<javascript>
GetInfo(@varA,@varB)
</javascritpt>
</div>
<button önClick="print()">Print</button>
When click on Print button wll pop up new windows to print the div printContent, somehow will hit javascript GetInfo() is undefined.
May i know how to pass the javascript value from html to pop up windows?
推荐答案
是的,您没有定义名为GetInfo
的函数.在哪里?首先定义它.
—SA
Yes, you did not define a function calledGetInfo
. Where? Define it first.
—SA
这篇关于在弹出窗口中未定义Javascript函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文