Blogger Information
Blog 77
fans 0
comment 2
visits 55681
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Vue--deta支持对象和函数,为什么要优先使用函数
南瓜又个梦
Original
561 people have browsed it

当demo是来自demo组件里的对象时,h函数里有两个demo组件的时候,第一个h(demo)的demo进行操作修改后,第二个h(demo)得到的demo对象是已经被修改的对象,但是第二个可能需要的是没有被修改的demo对象

当demo是个函数时,两个组件会调用函数,他们调用时,产生的对象不一样,就避免了两个demo用一个对象的情况


deta能写函数经量写函数

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post