function ClickMe(str){}
假设str参数需要的是字符串变量,在拼接HTML标签时注意转义
var ss="55" var s = ' <input type="button" onclick="ClickMe(\"' + ss + '\")" />'