© 1999-2048 dssz.net 粤ICP备11031372号
[其它] ASP.NET调用javascript脚本的常见方法小结
说明:1、直接在前台调用 javascr ipt 函数 很简单,在 head 元素之间加入 scr ipt 元素,将 type 元素设置为 ” text/javascr ipt ” 如: 代码如下: [removed] function ShowName(str) { alert(“您的名字为:(“+str+”)”); } [removed] using javascr ipt 之后在body 元素间,通过事件来访问 如 要通过button1 的单击事<weixin_38715008> 上传 | 大小:56kb