Solution to the problem that smarty cannot call js script

WBOY
Release: 2016-07-25 08:59:35
Original
1046 people have browsed it
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.



source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template