摘要:
1.宝塔面板,在网站内设置伪静态 location /test{ proxy_pass https://baidu.com; } 2.前端请求写法 $.ajax({ type: 'POST', url: '/test/index/getOrder', //请求地址只需简写,当nginx检测到test 阅读全文
摘要:
let rel_params = {page:1}, list_data = '', list_length = 0, curr = 1; function getData(params) { $.ajax({ type: 'POST', url: '接口地址', data: params, suc 阅读全文
摘要:
传递对象序列化并执行replace(/"/g, '"')操作 let data = [{ "a":"a", "a":"a", "a":"a", "a":"a", "a":"a" },{ "a":"a", "a":"a", "a":"a" 阅读全文
摘要:
for(var i=0;i<arr.length;i++){ //for循环为最简单循环数据方法,根据下标取数组值 console.log(arr[i]+"\n") } arr.forEach(function(val,index){ //forEach为ES5支持的遍历方法,不能使用break和r 阅读全文