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

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

WBOY
Release: 2016-06-13 12:43:46
Original
915 people have browsed it

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


  
  <script></script>



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