How to handle the issue of passing html nested php values to JS?

Source: Internet
Author: User
The value of php nested in html is passed to JS. a php nested in my html is used to loop out the question. Is there a variable value $ time in php to be passed to JS for Countdown? How to implement transfer ?, Functionjs () {vartime = & lt ;? Phpecho $ time ;? & Gt; for html nested php values are passed to JS
Nested php in my html is used to output the question cyclically. php has a variable value $ time.
Will it be passed to JS for Countdown? How to implement transfer?

------ Solution --------------------
Function js (){
Var time =
For...
}
------ Solution --------------------
What are the errors? That piece of code should be included in script and script.
------ Solution --------------------
Exam. js ???
Then your var t_time = ; Can I not report an error?

No error will be reported if you rename exam. js to exam. php.
------ Solution --------------------
Discussion
Exam. js ???
Then your var t_time = ; Can I not report an error?

No error will be reported if you rename exam. js to exam. php.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.