[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fEF2jSqTE8UlMGT_ctMhkbRCsvxStCYHjSR28htpIXjU":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",181065010,[8,9,10,11],"v-model","v-on","props","$slot",{"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单元测验","父组件向子组件传递数据,子组件可以使用以下( )选项来获取数据",[21,32,35,44,53,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":6,"options":34,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":36,"createTime":5,"id":37,"options":38,"question":43,"source":30,"type":31},[],181065011,[39,40,41,42],"&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":45,"createTime":5,"id":46,"options":47,"question":52,"source":30,"type":31},[],181065012,[48,49,50,51],"普通注册","局部注册","一般注册","全局注册","使用Vue.component(tagName, options) 定义的组件属于( )注册方式",{"answer":54,"createTime":5,"id":55,"options":56,"question":59,"source":30,"type":31},[],181065013,[57,9,58,8],"v-bind","v-for","子组件使用this.$emit('input',this.子组件属性)向父组件传值时,父组件中应该使用( )指令来监听",{"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,[8,57,58,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()在组件中通过自定义事件来( )消息"]