摘要: //laravel中有CSRF保护 不加的话会出现419错误$.ajax({ url: '/admin/user/'+id, type: "POST", data: {'_token': $('meta[name=csrf-token]').attr("content"), '_method': 'DELETE'}, dataType: "JSON", sync:'true... 阅读全文
posted @ 2018-07-11 00:53 路易大魔王 阅读(2034) 评论(0) 推荐(0) 编辑
摘要: //使用JS获取当前页面的URL(网址信息) <script> var url; url = window.location.href; /* 获取完整URL */ alert(url); /* http://127.0.0.1:8020/Test/index.html#test?name=test 阅读全文
posted @ 2018-07-11 00:46 路易大魔王 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 多条件查询 应对 url 无用 null 值现象 处理例如:http://xxoo.b2b.com/orders?city_id=5&repertory_id=7&area_id=39&order_status=&order_type=&pay_type=&id=&add_user_id=&clie 阅读全文
posted @ 2018-07-11 00:44 路易大魔王 阅读(324) 评论(0) 推荐(0) 编辑