全栈笔记

webstorm 快捷输入自定义模板总结

2018-12-24  本文已影响1人  小贤笔记

修改方法

打开"设置"(Ctrl + Alt + S)


模板

console.log()

console.log($PARAN$);
console.log($SELECTION$);

function() {}

function($MODULE_VAR$) {
$END$
});

alert()

alert($PARAN$);

ajax

$.ajax({
    url: '$PARAN$',
    data:{},
    type: 'post',
    dataType: 'JSON',
    success:function(res) {}
});

axios

axios.get(``, {}).then(res => {
    console.log(res);
}, rej => {
    console.log(rej);
}).catch(err => {
    console.log(err);
});
上一篇 下一篇

猜你喜欢

热点阅读