In recent analog business project, the knowledge used to sum up.
- Swiper plug
This plug is mainly used in the slide carousel map, and so the effect of a page class. - Write your own json file how to request?
JQuery can make requests directly to json file, request a directory address is the json file, set the dataType to json
$.ajax({
url:'../lib/list.json',
dataType:'json',
success:function(res){
console.log(res)
}
})
- Rendering secondary menu
request json file, wherein the data array through the loop in the form of a string of splicing rendering of the page, animation can be set - flex layout