![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue-js
怀色
拼,往死里拼...
展开
-
vue.js 双层嵌套 for 遍历方法, 类似php foreach()
主要运用 template 标签,可相当于 php foreach() foreach(lists as $key){ //todo foreach($key.自定义字段 as k){ //todo } }<template v-for="key in lists" v-cloak> <tr>原创 2017-05-03 11:11:53 · 16147 阅读 · 0 评论 -
vue.resource delete 方法 传参正确方式
吐槽一下网上说的各种方法太坑,简单实现方法 {body: json参数 } 请以添加 body 这种方式提交~vm.$http.delete(url, {body: vm.shipments}). then(function(response) { //code }, function(response) { //code })原创 2017-07-20 16:33:47 · 9512 阅读 · 0 评论