Example of js call method in smarty

Source: Internet
Author: User
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.

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.