This article mainly introduces the js call method example in smarty, which is a common problem in the design of the smarty template and is very practical. If you need it, refer
This article mainly introduces the js call method example in smarty, which is a common problem in the design of the smarty template and is very practical. If you need it, refer
This article describes how to call js in smarty and shares it with you for your reference. The specific method is analyzed as follows:
I. Problems:
Sometimes, when the smarty contains js, the whole page will not be displayed, while programmers often find errors in the page, program pages, and template pages check for multiple times without errors, it is very depressing.
Ii. solution:
Copy the js Code on the template page and place it in the newly created js file, and then include it in the template page, such:
The Code is as follows:
{Popup_init src = "css/commen. js? 6.1.3 "}
In this way, the problem is solved.
I hope this article will help you with PHP programming.