规范前端代码模板
>**规范前端代码模板**
>---
>>```
>>$.ajax({
>> type: 'get',
>> url: '/user/Profile/index',
>> headers:{
>> "XX-Token":'b6748bca346361a648509fa73cfc19d645da4cccb6fef24ab5e5bc61667285f9',
>> "XX-Device-Type":'web',
>> "Content-Type":"text/plain;charset=UTF-8"
>> },
>> data:{order:'-create_time',page:1},
>> data:{},
>> success: function(data, status, xhr){
>> if(data.code==1){
>> /*成功获取数据*/
>> }
>> if(data.code==10001){
>> /*登录失效*/
>> }
>> },
>> error: function(xhr, type){
>> }
>> });
>>```