日期:2014-05-17  浏览次数:20679 次

这句话放到 out.print中
<tr onMouseOver="this.style.backgroundColor='#CCCCFF'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
小弟要在jsp中实现些js特效,但这句话中又很多引号,不知道怎么拆分,引号中引号怎么处理。

大牛帮忙,顺便解释下,这类问题怎么解决?谢谢!

------解决方案--------------------
out.print("<tr onMouseOver=\"this.style.backgroundColor='#CCCCFF'\" onMouseOut=\"this.style.backgroundColor='#FFFFFF'\">");