<br /><script type="text/javascript"><br /><br /> $(document).ready(function(){<br /> $("#send").click(function(){ <br /> var empty =0;<br /> var nbr_qst = <?php echo "$str";?>; //<span style="color: #FF0000;">这一行一直报错</span><br /> for (var i in nbr_qst) {<br /> <br /> if (!$("input[name='i']").is(':checked')){<br /> empty=1;<br /> }<br />
Copy after login
打开网页原代码报错的部分显示如下
$(document).ready(function(){<br /> $("#send").click(function(){ <br /> var test =0; <br /> var empty =0;<br /> var str = <br /><br />
Copy after login
快要崩溃了!!!! 求救!! ------解决思路---------------------- 很明显那只是PHP的错误信息: Notice: Undefined variable: str in C:\Users\btang\xampp\htdocs\QuestionaireV5\QuestionnaireV5\QuestionnaireV.php on line 11
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