取beizhu字段的内容传递到doit(yxs1)函数的参数中,输入beizhu字段的内容如是单行的那么程序运行正常,如输入时用回车换行了,则函数中的参数取不到值,请问该怎么办啊?
function doit(yxs1)
{
document.write(yxs1); 
}response.write "<tr bgcolor="&bgclr&" style='cursor:hand;' onmouseover=this.style.backgroundColor='blue' onmouseout=this.style.backgroundColor='' onclick='doit("""& rs("beizhu") & """ )'>"

解决方案 »

  1.   

    response.write "<tr bgcolor="&bgclr&" style='cursor:hand;' onmouseover=this.style.backgroundColor='blue' onmouseout=this.style.backgroundColor='' onclick='doit("""& replace(rs("beizhu"),vbCrlf,"") & """ )'>"
      

  2.   

    response.write "<tr bgcolor="&bgclr&" style='cursor:hand;' onmouseover=this.style.backgroundColor='blue' onmouseout=this.style.backgroundColor='' onclick='doit("""& replace(rs("beizhu"),vbCrlf,"<br>") & """ )'>"