各位大侠帮忙看一下下面的方法public void BuilJavaEvent()
{
this.DataSetToXml();
this.Attributes.Add("onkeypress","javascript:var jsXml = new ActiveXObject('Msxml2.DOMDocument') ;jsXml.loadXML('\" + document.getElementById('XmlValue').value+\";"+ this.GetJavaStrHtmlID());
}
我想通过c#脚本代码返回到前台一段js脚本,但是其中的双引号(/")到前台后变成"这有办法解决吗,或者是不是我这方法不对。
{
this.DataSetToXml();
this.Attributes.Add("onkeypress","javascript:var jsXml = new ActiveXObject('Msxml2.DOMDocument') ;jsXml.loadXML('\" + document.getElementById('XmlValue').value+\";"+ this.GetJavaStrHtmlID());
}
我想通过c#脚本代码返回到前台一段js脚本,但是其中的双引号(/")到前台后变成"这有办法解决吗,或者是不是我这方法不对。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货