<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 />
打开网页原代码报错的部分显示如下
$(document).ready(function(){<br /> $("#send").click(function(){ <br /> var test =0; <br /> var empty =0;<br /> var str = <br /><br />
快要崩溃了!!!! 求救!! ------解决思路---------------------- 很明显那只是PHP的错误信息: Notice: Undefined variable: str in C:\Users\btang\xampp\htdocs\QuestionaireV5\QuestionnaireV5\QuestionnaireV.php on line 11
var nbr_qst = document.getElementByname("json_qst");
js这里还是报错 是我写的不对吗
报什么错,不行加QQ群说吧:231566327
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
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),