[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fyDzwOQTjXrCPcnwU5V0JUY-bxRoV9zazJPN_-rckjcE":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2025-03-31 10:05:52",181065013,[8,9,10,11],"v-bind","v-on","v-for","v-model",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},15,"e5e64a9d4d6ec73350d76bdf868221a0","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002Fd569f72673e7acea937973f6b7571d6e.png","Vue.js前端框架技术","ee4dc737705e4a59af21bae938957520","第5单元测验","子组件使用this.$emit('input',this.子组件属性)向父组件传值时,父组件中应该使用( )指令来监听",[21,32,39,48,57,60,69,78,83,90],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],181065009,[25,26,27,28],"13","11","14","3","父组件中插入子组件&lt;my-component message=&quot;['E','F','G']&quot;&gt;&lt;\u002Fmy-component&gt;,在子组件中显示message.length的值为( )","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":38,"source":30,"type":31},[],181065010,[11,9,36,37],"props","$slot","父组件向子组件传递数据,子组件可以使用以下( )选项来获取数据",{"answer":40,"createTime":5,"id":41,"options":42,"question":47,"source":30,"type":31},[],181065011,[43,44,45,46],"&lt;mycomponent&gt;&lt;\u002Fmycomponent&gt;","&lt;my-component&gt;&lt;\u002Fmy-component&gt;","&lt;myComponent&gt;&lt;\u002FmyComponent&gt;","&lt;MyComponent&gt;&lt;\u002FMyComponent&gt;","下列代码中横线处应该使用( )来引用组件myComponent. &lt;div id=&quot;app&quot;&gt; &lt;\u002Fdiv&gt; &lt;script&gt; Vue.component('myComponent', { data () { return { count: 0 } }, template: '&lt;button v-on:click=&quot;count++&quot;&gt;被单击{{count}}次&lt;\u002Fbutton&gt;' }) var vm = new Vue({ el: '#app' , }) &lt;\u002Fscript&gt;",{"answer":49,"createTime":5,"id":50,"options":51,"question":56,"source":30,"type":31},[],181065012,[52,53,54,55],"普通注册","局部注册","一般注册","全局注册","使用Vue.component(tagName, options) 定义的组件属于( )注册方式",{"answer":58,"createTime":5,"id":6,"options":59,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":61,"createTime":5,"id":62,"options":63,"question":68,"source":30,"type":31},[],181065014,[64,65,66,67],"$on","$emit()","$render","$parent","自定义事件中,子组件用( )来触发自定义事件,父组件使用$on( )来监听子组件的事件",{"answer":70,"createTime":5,"id":71,"options":72,"question":77,"source":30,"type":31},[],181065015,[73,74,75,76],"数组","对象","函数 (data(){ })","字符串","组件中的data选项必须定义为( )",{"answer":79,"createTime":5,"id":80,"options":81,"question":82,"source":30,"type":31},[],181065016,[11,8,10,9],"要动态地绑定父组件的数据到子组件的props,需要使用( )指令",{"answer":84,"createTime":5,"id":85,"options":86,"question":89,"source":30,"type":31},[],181065017,[73,74,87,88],"函数","布尔","props选项的( )类型可以用于对外部传递进来的参数进行数据验证",{"answer":91,"createTime":5,"id":92,"options":93,"question":98,"source":30,"type":31},[],181065018,[94,95,96,97],"接收","拒绝","同步","发送","兄弟组件间通信时,通过事件总线(var bus=new Vue())来完成发送和接收消息. 其中:bus.$emit()在组件中通过自定义事件来( )消息"]