Home >Backend Development >PHP Tutorial >Solution to the problem that smarty cannot call js script
This article introduces the solution to the problem that the entire page will not be displayed when calling js in smarty. The method is very simple, but very practical. Friends in need, don’t miss it.
When js is included in smarty, the entire page will not be displayed. How to solve it? The method is very simple, as follows: Copy the js code in the template page to a newly created folder outside, and then include it in the template page. For example: {popup_init src="css/commen.js"}After easy conversion, the problem was solved. |