Home >Backend Development >PHP Tutorial >Solution to the problem that smarty cannot call js script

Solution to the problem that smarty cannot call js script

WBOY
WBOYOriginal
2016-07-25 08:59:351051browse
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.



Statement:
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