<input type="button" onclick="setTimeout('alert(123);',100)" />
这条是OK的
但是如果alert(123)改为alert("123")这里要怎么写呢?
因为外面已经有了一个""了
<input type="button" onclick="setTimeout('alert("123");',100)" /> 这样不行
谢谢
这条是OK的
但是如果alert(123)改为alert("123")这里要怎么写呢?
因为外面已经有了一个""了
<input type="button" onclick="setTimeout('alert("123");',100)" /> 这样不行
谢谢
解决方案 »
- JS能否更改某个标签的onclick属性,使其弹出一个新窗口?
- 请教一下jquery实现右键菜单
- Element.childElements(this)不能直接调用吗?
- 关于jsp页面根据方向键上下左右移动光标(用js实现)
- 静态页面评论 引用评论的代码?
- 最新Web前端开发 Dom手册.很全!
- ASP虚拟空间不显示动态鼠标指针ani ,静态的cur可以显示。
- 急﹗﹗﹗﹗問一個JS 問題
- 200分,在Textarea里面实现一般编辑器的tab键退4格,shift+tab返退4格的功能?
- 请 yeefly(Web开发版) 进来接分,感谢之~~~(闲人免进)
- onpropertychange事件中验证数据
- 关于select控件的设计问题
转义 alert(\"123\")
这样也是报错
<input type="button" onclick="setTimeout('alert(\'123\')',100)" />
<input type="button" onclick="setTimeout('alert(\'123\')',1000)" />