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

PHP转义符有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:55:06
Original
909 people have browsed it

PHP转义符问题
标准是:

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

onclick里面的不对,不知道怎样写
------解决方案--------------------

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

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

------解决方案--------------------
浏览器中看看“源代码”不就知道了
------解决方案--------------------
实在不行用.拼接吧

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template