PHP转义符问题

WBOY
Release: 2016-06-23 13:58:44
Original
972 people have browsed it

标准是:

现在需要写成这样的:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!