Hello,World.

秋风与你,偏安一隅.

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