<script type="text/javascript"> var mycarrer = "HTML"; if (mycarrer == "HTML") { document.write("你面试成功,欢迎加入公司。"); } </script>
请问第一个mycarrer="HTML"和第二个mycarrer="HTML“表达的意思有什么区别吗?
Problems in judging statements? -PHP Chinese website Q&A-Question about judging statements? -PHP Chinese website Q&A
Please watch and learn.
有区别。第一个是声明变量,并给变量mycarrer一个值。第二个是用的“==”号,是赋值。
Problems in judging statements? -PHP Chinese website Q&A-Question about judging statements? -PHP Chinese website Q&A
Please watch and learn.
有区别。第一个是声明变量,并给变量mycarrer一个值。第二个是用的“==”号,是赋值。