摘要:
&&两边都是true,结果才是true ||有一个为true,结果就是true,当前面的表达式为ture时候,不在计算后面的表达式 三元运算符 x?y:z x:boolean类型 x为true,执行y表达式 x为false,执行z表达
阅读全文
posted @ 2020-05-10 18:51
心意如水hucuie22
阅读(155)
推荐(0)
摘要:
1,字母,数字,下划线,美元$ 2,数子不能开头 3.不能是js关键字或者保留字
阅读全文
posted @ 2020-05-10 12:18
心意如水hucuie22
阅读(178)
推荐(0)
摘要:
if() else 2选择1 三目运算符可以取代if(){}else{} if(){ }else if(){}else if(){}else{}
阅读全文
posted @ 2020-05-10 12:15
心意如水hucuie22
阅读(113)
推荐(0)
摘要:
1.安装cnpm install vuex --save 2.src/新建立一个文件夹叫store,里面新建一个js,叫做strore.js 3.在store.js import Vue from 'vue'import Vuex from 'vuex'Vue.use(Vuex)/*外部想要引入这个
阅读全文
posted @ 2020-05-05 15:04
心意如水hucuie22
阅读(162)
推荐(0)
摘要:
<input type="text" placeholder="搜索" v-model="filterinput" class="form-control"> return { msg: 'Welcome to Your Vue.js App', customers:[], alert:"", fi
阅读全文
posted @ 2020-05-05 08:13
心意如水hucuie22
阅读(462)
推荐(0)
摘要:
main.js 设置路由的路径path:"/edit/:id" <router-link v-bind:to="'/edit/'+data.id">编辑</router-link> load:function(id){ console.log(id) this.$http.get("http://j
阅读全文
posted @ 2020-05-04 22:48
心意如水hucuie22
阅读(143)
推荐(0)
摘要:
二、方发之间的区别: 1、PUT和POST PUT和POS都有更改指定URI的语义.但PUT被定义为idempotent的方法,POST则不是.idempotent的方法:如果一个方法重复执行 多次,产生的效果是一样的,那就是idempotent的。也就是说: PUT请求:如果两个请求相同,后一个请
阅读全文
posted @ 2020-05-04 12:35
心意如水hucuie22
阅读(1126)
推荐(0)
摘要:
注意click需要传入当前的id值 deletes:function(id){ this.$http.delete("http://jsonplaceholder.typicode.com/users/"+id). then(function(data){ console.log(data) thi
阅读全文
posted @ 2020-05-04 12:26
心意如水hucuie22
阅读(4322)
推荐(0)
摘要:
1,在父组件<v-user v-bind:meaage="test"></v-user> 此时会报错,test要在返回值里面去声明 return {msg: 'Welcome to Your Vue.js App', test:"" } 在子组件里用props:["message"]接收 expor
阅读全文
posted @ 2020-05-04 10:31
心意如水hucuie22
阅读(162)
推荐(0)
摘要:
<form class="form-horizontal" v-on:submit="submits">
阅读全文
posted @ 2020-05-03 15:34
心意如水hucuie22
阅读(1372)
推荐(0)