上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 61 下一页
摘要: <script> // 异步组件: 异步执行某些组件的逻辑 var app = Vue.createApp({ template:` <div> <common-item /> <async-common-item /> </div> `, }) app.component('common-item 阅读全文
posted @ 2021-12-07 10:32 13522679763-任国强 阅读(42) 评论(0) 推荐(0)
摘要: // 动态组件: 根据数据的变化 结合 component 这个标签,来随时切换组件的显示 var app = Vue.createApp({ data(){ return { currentItem:'input-item' } }, methods:{ handleClick(){ if(thi 阅读全文
posted @ 2021-12-07 10:11 13522679763-任国强 阅读(64) 评论(0) 推荐(0)
摘要: <script> // 当子组件渲染的内容需要父组件 决定的时候 使用 var app = Vue.createApp({ template:` <list v-slot="slotProps"> <p>{{slotProps.item}}</p> </list> `, }) app.compone 阅读全文
posted @ 2021-12-07 09:47 13522679763-任国强 阅读(31) 评论(0) 推荐(0)
摘要: var app = Vue.createApp({ template:`<div> <myform> <div>提交</div> </myform> <myform> <button @Click="handleClick"> 提交</button> </myform> <myform> </myf 阅读全文
posted @ 2021-12-07 09:31 13522679763-任国强 阅读(35) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-12-06 20:59 13522679763-任国强 阅读(22) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-12-06 20:59 13522679763-任国强 阅读(26) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-12-06 20:58 13522679763-任国强 阅读(34) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-12-06 20:57 13522679763-任国强 阅读(27) 评论(0) 推荐(0)
摘要: 双向绑定 v-model // input textarea checkbox redio select checkbox message: false // true message: ['jack','dell'] jack <input type="checkbox" v-model="mes 阅读全文
posted @ 2021-12-06 09:13 13522679763-任国强 阅读(77) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-12-05 12:15 13522679763-任国强 阅读(44) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 61 下一页