05 layer and jquery, involving a template import method

Just start with a layer feeling particularly convenient, simple record it

1. http://layer.layui.com/  Here is the official website of the layer, which has the latest version of layer.js.

2. not up to date is the best, the latest version is no longer supported by the ie6, according to a project need to select their own version Download

3. INSTALLATION: (animate in)

3.1 The things you currently do export a template. (Click on the first part of the picture 1)

3.2 Open html file export. In this template can be configured (all configuration items are written on the back of your code here), jquery can find the online version, I have here is directly downloaded to the local up. src is the path. If local representative of the root directory path ./. After doing remember to save ah, preservation is a good habit.

3.3 can import the settings back to the template. (Note: each modification to re-import, he will not automatically give you reimport, you may add this feature in later versions, but it currently does not, be sure to pay attention to this matter)

3.4 questions regarding the layer directly Tell me what network you can. very convenient. Here recommend their official website api Address: http://layer.layui.com/api.html

Guess you like

Origin www.cnblogs.com/heteng/p/12114486.html