js
颜帆⅓¼
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
axios
//get请求 axios.get('请求地址', { params: { //请求数据 }, headers:{ token:"token" } }) .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); }); //post请求 axios.post('请求地址',原创 2021-06-23 10:00:19 · 130 阅读 · 0 评论 -
js 数组添加,删除功能 触发事件
Array.prototype.add = function(d, cb) { this.push(d)//添加 cb && cb(this)//触发事件 } Array.prototype.del = function(d,cb) { if (d == undefined) { console.error("请指定删除的值") return } var index = this.indexOf(d) if(index == -1){原创 2021-06-21 17:20:47 · 141 阅读 · 0 评论
分享