demo.js
layui.use('element', function(){
var $ = layui.$;
$("#call_interface").click(function(){
$.get("/getAll/", {page: 1, limit:10, interface_cover:1,type:null,project:null},function (result) {
console.log("=======>", result);
})
});
});
html中调用js
<script src="static/js/demoJS.js"></script>