当前位置:编程学习 > php >>

关于php双引号与单引号问题

原句: echo "document.getElementById('help_kj').innerHTML+=\"<div style='background-color:#fff; width:110px;cursor:pointer;' onmouseout='showout()' onmouseover='show(this,'".$data["Root"]["Templates"][$index]."')' >  ".$data["Root"]["Templates"][$index." attr"]["name"]."</div><br/>\";"; 报错语句: onmouseover='show(this,'".$data["Root"]["Templates"][$index]."')' 这一句话删除掉后,运行正常,不删报错为缺少; 求问这句话onmouseover='show(this,'".$data["Root"]["Templates"][$index]."')' 应该怎么改"
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,