Today, in a Web site forum, a friend asked: How to embed PHP code in javascript?
This is a very simple question, so send to the Internet to share with you, learning!
The problem is this:
How do I embed PHP code in javascript?
I am a novice, please don't bother me! Hey......
Have a friend to answer:
Small series looked, feel not very good, so analyzed the reasons:
General JS is done on the page of the template.
Not a few are written in PHP. Not conducive to modification.
If you want to interact with PHP, you can use
PHP json. Yes, it is. Hope this article for PHP beginners have a good help, welcome you often come to the fire Building Station Academy!
http://www.bkjia.com/PHPjc/364113.html www.bkjia.com true http://www.bkjia.com/PHPjc/364113.html techarticle today, in a Web site forum, a friend asked: How to embed PHP code in javascript? This is a very simple question, so send to the Internet to share with you, learn ...