- 博客(4)
- 收藏
- 关注
原创 vue 请求数据
//axios的Get方法封装 function GET(url, data, method) { var tk = getCookie(‘token’); if (tk) { axios({ url: url, method: ‘get’, data: data, headers: { ‘token’: tk } }).then(function (response) { if (respons...
2019-05-13 18:31:41
151
原创 状态码
HttpStatus = { //Informational 1xx 信息 ‘100’ : ‘Continue’, //继续 ‘101’ : ‘Switching Protocols’, //交换协议 //Successful 2xx 成功 '200' : 'OK', //OK '201' : 'Created', //创建 '202' : 'Accep...
2019-05-13 18:31:14
145
原创 css 初始样式
body,h1,h2,h3,h4,h5,h6,ul,ol,dl,dd,p,input{ margin:0; padding:0; } a{ text-decoration: none; color: #666; } input:focus{ outline:none; } ul,ol{ list-style: none; } img{ vertical-align: top; border: 0;...
2019-05-13 18:28:02
212
原创 页面禁止F5刷新
document.onkeydown = function (e) { var ev = window.event || e; var code = ev.keyCode || ev.which; if (code == 116) { if(ev.preventDefault) { ev.preventDefault(); } else { ev.keyCode = 0; ev.returnVal...
2019-05-13 18:25:09
1273
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人