会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
落雨大
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2016年10月19日
JS方法接受变量类型
摘要: function ClickMe(str){} 假设str参数需要的是字符串变量,在拼接HTML标签时注意转义 var ss="55" var s = ' <input type="button" onclick="ClickMe(\"' + ss + '\")" />'
阅读全文
posted @ 2016-10-19 11:43 落雨大
阅读(122)
评论(0)
推荐(0)
编辑