Home  >  Article  >  Backend Development  >  怎么在JS中得到PHP的变量值

怎么在JS中得到PHP的变量值

WBOY
WBOYOriginal
2016-06-13 12:43:46892browse

如何在JS中得到PHP的变量值?
比如是这样:


  
  <script></script>



这样的话xx.js中插入好像引用不到那个$name变量,请问哪里出问题了?
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