时,为什么这个(')会出现为什么这个不需要的字符添加了动态创建的文本框?如何拍摄出为什么当我动态添加
onkeyup="numeri_validator(this,'clockin_100001_1','total_100001_1')"
这背后
string s="numeri_validator(this,'" + textboxClockIn.ID.ToString() + "','"+textboxTotal.ID.ToString()+"')";
string decodedString = System.Web.HttpUtility.HtmlDecode(s);
textboxClockIn.Attributes.Add("onkeyup",decodedString);
textboxClockOut.Attributes.Add("onkeyup", "numeri_validator(this,'" + textboxClockOut.ID + "','" + textboxTotal.ID + "')");
两种方式相同的结果代码
当我打破这是我的休息导致
numeri_validator(this,'clockin_100001_1','total_100001_1')
请咨询我
T hanks
你的性格是不是真的不想要的。 '是'的表示,就像你想要的一样。 –
但JavaScript是以此为参数值如何避免这种情况 – aas