最新
我要提问
发布笔记
患了低血糖的狗
我是{{ xiaochen }} {{ num/5 }} {{ num*5 }} {{ number*num }} {{ number/num }} 把input框的值改为小不点 把input框的值改为小布丁 {{ num==50?'等于':'不等于' }} 我是{{ xiaochen }} {{ htnlcode }} 跳转到百度 {{ texturl }} {{ url }} 修改链接地址为tp官网 修改链接地址为nodejs官网 export default{ data(){ return{ xiaochen : "小陈", num:100, number:10, button:"点击我触发点击事件", // button1:"修改小绿", // button2:"修改小红", htnlcode:"大苏", url:"https://www.baidu.com/", texturl:"百度网", } }, //js方法写到methodes //选项api里面有 name,data,methods,computed,components,props //组合api:setup methods: { fun(e){ //alert(111); if(e==1){ this.xiaochen='小不点'; }else{ this.xiaochen='小不丁'; } }, funurl(e){ //alert(111); if(e==1){ this.url='https://www.thinkphp.cn/'; this.texturl='thikphp官网'; }else{ this.url='https://nodejs.org/en'; this.texturl='nodejs官网'; } } }, } .red{ color:red; }
3星期前 0
看过该课程的同学也在学
患了低血糖的狗
我是{{ xiaochen }} {{ num/5 }} {{ num*5 }} {{ number*num }} {{ number/num }} 把input框的值改为小不点 把input框的值改为小布丁 {{ num==50?'等于':'不等于' }} 我是{{ xiaochen }} {{ htnlcode }} 跳转到百度 {{ texturl }} {{ url }} 修改链接地址为tp官网 修改链接地址为nodejs官网 export default{ data(){ return{ xiaochen : "小陈", num:100, number:10, button:"点击我触发点击事件", // button1:"修改小绿", // button2:"修改小红", htnlcode:"大苏", url:"https://www.baidu.com/", texturl:"百度网", } }, //js方法写到methodes //选项api里面有 name,data,methods,computed,components,props //组合api:setup methods: { fun(e){ //alert(111); if(e==1){ this.xiaochen='小不点'; }else{ this.xiaochen='小不丁'; } }, funurl(e){ //alert(111); if(e==1){ this.url='https://www.thinkphp.cn/'; this.texturl='thikphp官网'; }else{ this.url='https://nodejs.org/en'; this.texturl='nodejs官网'; } } }, } .red{ color:red; }
3星期前 0