Home >Backend Development >PHP Tutorial >PHP转义符问题

PHP转义符问题

WBOY
WBOYOriginal
2016-06-23 13:58:44981browse

标准是:

现在需要写成这样的:
echo  " ";

onclick里面的不对,不知道怎样写


回复讨论(解决方案)

echo  " <input type='button' name='button2' id='button2' onclick='if(confirm(\"定要删除?\")) del_department(\"{$vo.id}\")'  class='btnStyle' value='删除'/>";

echo  " <input type='button' name='button2' id='button2' onclick=\"if(confirm('确定要删除?')) del_department('{$vo.id}')\"  class='btnStyle' value='删除'/>";

浏览器中看看“源代码”不就知道了

实在不行用.拼接吧

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn