这段代码有什么问题?
我收到的编译错误是“常量中的换行符”
错误发生在四个星号所在的位置 (****
)。
我无法调试,因为解决方案无法成功构建。
<script type="text/javascript">
function TNClicked(fullImgURL, TNID) {
document.getElementById("<%= this.imgFull.ClientID %>").src = fullImgURL;
var pnlFullImage = document.getElementById("<%= this.pnlFullImage.ClientID %>");
if (pnlFullImage.style.visibility != "visible")
pnlFullImage.style.visibility = "visible";
document.getElementById("<%= this.tcImage.ClientID %>").innerHTML = TNID;
//document.forms[0].ctl00$ctl00$ctl00$cntBody$hfImage.value = TNID;
//****document.getElementById("<%= this.hfImage").setAttribute("value", TNID);
//document.getElementById("<%= this.hfImage.ClientID %>").value = TNID;
}
</script>
The compile error I'm getting is "newline in constant"
The error occurs where the four asterisks are (****
).
I can't debug, because the solution won't build successfully.
<script type="text/javascript">
function TNClicked(fullImgURL, TNID) {
document.getElementById("<%= this.imgFull.ClientID %>").src = fullImgURL;
var pnlFullImage = document.getElementById("<%= this.pnlFullImage.ClientID %>");
if (pnlFullImage.style.visibility != "visible")
pnlFullImage.style.visibility = "visible";
document.getElementById("<%= this.tcImage.ClientID %>").innerHTML = TNID;
//document.forms[0].ctl00$ctl00$ctl00$cntBody$hfImage.value = TNID;
//****document.getElementById("<%= this.hfImage").setAttribute("value", TNID);
//document.getElementById("<%= this.hfImage.ClientID %>").value = TNID;
}
</script>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用注释掉您的评论
并关闭此
Try commenting out your comments using
and close this