Home >CMS Tutorial >Empire CMS >How to import custom js into empire cms

How to import custom js into empire cms

尚
Original
2019-07-31 15:45:473122browse

How to import custom js into empire cms

Customized JS function: In addition to the fixed information JS calls built into the system, users can also generate corresponding information JS calls through SQL conditions, making JS calls more flexible.

Add Custom JS

1. Log in to the backend, click the "Column" menu, select the "Add Custom JS" submenu, and enter the Add Custom JS interface :

How to import custom js into empire cms

2. Enter the add custom JS interface, as shown below:

How to import custom js into empire cms

##JS name Fill in the JS call name. JS storage address Fill in the JS file storage address (the address starts from the backend directory, "../../" means in the root directory). Query SQL statement Fill in the query SQL statement to call the information. Use JS template Select the JS template to use (see the "Art Manual" for details on JS template production).

## 3. After adding custom JS, return to the management custom JS page, as shown below:

How to import custom js into empire cms

Preview]Preview the generated JS file calling effect. Updates the selected custom JS. Add: anywhere on the page, example: Empire cms website building tutorial

[Refresh] button
JS calling method
##Recommended:

The above is the detailed content of How to import custom js into empire cms. For more information, please follow other related articles on the PHP Chinese website!

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