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

PHP转义符有关问题

WBOY
WBOYOriginal
2016-06-13 11:55:06865browse

PHP转义符问题
标准是:

现在需要写成这样的:
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
Previous article:Phar:PHP文件存档Next article:PHP扩展装配之phpize