VUE组件中name的作用

福尔摩斯对我笑 2019-04-13 64861 次 6434条

最近在使用VUE的过程中,发现组件中有个name的属性,可写可不写,就比较奇怪,这个属性用来做什么的。经过学习的深入也基本了解了该属性的作用,在此记录下。

递归组件时使用

比如我下面的例子中,list数组里有子项数据,那么就可以直接通过name值调用自身的组件,用来实现递归

使用keep-live包裹组件时,可通过exclude直接设置对某些组件不缓存

这里的Detail就是之前组件的name属性

VUE浏览器插件

使用VUE调式插件时,dom结构中的名称就是name的属性值了

标签:

非特殊说明,本博所有文章均为博主原创。

头像也是LOGO
未来博客 博主大人
到了这个年纪,不应该再彷徨!

发表评论



 


已有 6434 条评论 1


  1. kd 11

    I wish to point out my appreciation for your kind-heartedness in support of people who must have assistance with the concern. Your very own commitment to passing the solution all-around came to be particularly informative and has consistently allowed associates just like me to reach their dreams. This interesting facts denotes so much to me and substantially more to my office colleagues. Many thanks; from each one of us.

    回复 2019年10月27日
  2. adidas flux

    I precisely needed to thank you so much all over again. I am not sure the things I would’ve used without the type of methods revealed by you relating to this problem. It truly was a difficult issue for me personally, however , coming across the very well-written style you processed that forced me to leap for delight. Now i’m thankful for the help and even trust you are aware of a powerful job you are accomplishing teaching the rest through your webpage. Most likely you’ve never got to know any of us.

    回复 2019年10月27日
  3. kobe basketball shoes

    I have to get across my affection for your kindness supporting persons who must have help on this matter. Your very own dedication to passing the message all over appeared to be rather useful and have surely empowered guys and women just like me to get to their goals. Your new invaluable tutorial means much a person like me and additionally to my fellow workers. With thanks; from all of us.

    回复 2019年10月27日
  4. cheap jordans

    I really wanted to write down a small remark to be able to express gratitude to you for the splendid tips you are placing on this website. My prolonged internet search has at the end been honored with excellent suggestions to talk about with my close friends. I ‘d believe that we readers actually are really endowed to be in a great place with many lovely individuals with insightful advice. I feel rather lucky to have seen your website page and look forward to plenty of more thrilling moments reading here. Thank you again for all the details.

    回复 2019年10月26日
  5. yeezy 700

    I intended to put you that little bit of observation to help give many thanks yet again considering the marvelous views you have discussed above. This is simply seriously generous of you in giving openly exactly what many individuals would’ve advertised for an ebook to end up making some profit for themselves, most notably considering the fact that you could possibly have done it if you ever considered necessary. These things additionally acted as the good way to understand that other individuals have a similar dreams just like my own to know the truth a lot more in terms of this problem. I believe there are some more fun opportunities ahead for individuals who browse through your site.

    回复 2019年10月26日
  6. cheap jordans

    Thank you so much for giving everyone a very remarkable possiblity to read in detail from this blog. It is always so brilliant and as well , jam-packed with a lot of fun for me and my office peers to search your site nearly three times in one week to learn the fresh issues you have. Of course, I’m also usually amazed for the fantastic solutions served by you. Certain 3 ideas on this page are truly the very best we have all had.

    回复 2019年10月26日
  7. golden goose outlet

    I simply wanted to say thanks again. I’m not certain the things I would have achieved without the actual techniques shown by you regarding such a area of interest. Completely was an absolute troublesome difficulty in my view, nevertheless noticing this expert style you processed it forced me to leap with contentment. I’m just grateful for this assistance and in addition hope that you find out what a great job you are carrying out instructing some other people by way of a site. More than likely you have never met any of us.

    回复 2019年10月25日
  8. supreme clothing

    I wish to voice my gratitude for your generosity in support of persons that absolutely need guidance on this important niche. Your very own commitment to passing the message throughout was astonishingly invaluable and has usually made employees like me to reach their targets. Your personal important information means a great deal a person like me and extremely more to my office workers. Thanks a ton; from all of us.

    回复 2019年10月25日
  9. nike react

    I actually wanted to type a comment to say thanks to you for some of the remarkable suggestions you are posting on this site. My particularly long internet research has now been rewarded with beneficial know-how to go over with my contacts. I ‘d express that many of us visitors actually are extremely endowed to exist in a perfect community with so many wonderful individuals with valuable guidelines. I feel quite lucky to have come across the weblog and look forward to so many more cool minutes reading here. Thanks a lot once more for all the details.

    回复 2019年10月25日
  10. balenciaga

    I needed to send you the little bit of note so as to thank you so much the moment again for your personal extraordinary techniques you have provided above. It’s tremendously generous with you to provide unreservedly all that a few people would’ve made available as an ebook to get some money for their own end, principally given that you might well have tried it in the event you desired. These tricks in addition worked like the great way to fully grasp that many people have the identical keenness much like my own to see very much more around this condition. I’m sure there are numerous more pleasant opportunities up front for many who read carefully your blog.

    回复 2019年10月25日
  11. golden goose

    I must express my appreciation to the writer just for rescuing me from this type of problem. Right after surfing around through the world-wide-web and meeting notions that were not beneficial, I thought my life was gone. Living without the presence of solutions to the issues you’ve sorted out through your main site is a serious case, and the ones which might have badly affected my entire career if I had not noticed the blog. Your own expertise and kindness in taking care of the whole lot was very helpful. I am not sure what I would have done if I had not discovered such a thing like this. It’s possible to at this point relish my future. Thanks for your time so much for your specialized and result oriented help. I won’t hesitate to recommend the blog to anyone who desires guide on this subject.

    回复 2019年10月24日
  12. kd 10

    I intended to compose you one little bit of remark just to say thank you again regarding the marvelous advice you’ve documented on this site. It’s really surprisingly open-handed with you to convey unhampered what exactly a few individuals would’ve distributed as an e-book to generate some profit for themselves, even more so now that you might have done it if you desired. Those tips likewise served like the good way to be certain that other people have the same fervor just as my own to know the truth lots more in regard to this issue. I believe there are several more fun periods ahead for those who read carefully your blog.

    回复 2019年10月24日
  13. moncler

    I would like to convey my appreciation for your kind-heartedness supporting men who actually need help on this one field. Your real dedication to getting the message all-around has been rather practical and have always empowered professionals much like me to get to their goals. Your amazing valuable information can mean a lot a person like me and a whole lot more to my colleagues. With thanks; from each one of us.

    回复 2019年10月24日
  14. supreme hoodie

    Thanks a lot for providing individuals with remarkably pleasant opportunity to read critical reviews from this blog. It is usually very good plus packed with amusement for me and my office colleagues to search your web site at minimum thrice a week to read through the new guidance you have. And definitely, I am just usually amazed with the mind-blowing hints you serve. Certain 3 areas in this post are truly the most efficient I’ve ever had.

    回复 2019年10月23日
  15. yeezy boost

    Thanks a lot for giving everyone such a special opportunity to check tips from this web site. It is often very kind and also jam-packed with a great time for me personally and my office peers to search the blog on the least three times in 7 days to read the newest tips you have got. And indeed, we’re usually amazed with all the surprising inspiring ideas you serve. Certain 2 facts in this article are particularly the most impressive we’ve ever had.

    回复 2019年10月23日
  16. jordans

    Thanks so much for providing individuals with an extraordinarily brilliant chance to discover important secrets from here. It is always very enjoyable plus stuffed with fun for me and my office peers to visit the blog at minimum 3 times in 7 days to read through the newest stuff you have. And definitely, we are always astounded with all the beautiful pointers you serve. Some 4 points in this posting are unequivocally the simplest we have had.

    回复 2019年10月22日
  17. lebron shoes

    I am glad for writing to make you be aware of what a extraordinary encounter our girl encountered checking your webblog. She figured out so many pieces, including how it is like to possess an amazing giving spirit to make certain people quite simply completely grasp chosen multifaceted things. You undoubtedly exceeded my desires. Many thanks for churning out these practical, trustworthy, educational and as well as unique tips on the topic to Sandra.

    回复 2019年10月21日
  18. nike air vapormax

    I am glad for writing to let you know what a great encounter our princess undergone browsing your web site. She mastered some details, including how it is like to have an amazing coaching mood to get many others really easily know precisely a variety of very confusing things. You undoubtedly exceeded readers’ expectations. Thanks for displaying those good, safe, explanatory not to mention cool guidance on this topic to Emily.

    回复 2019年10月20日
  19. jordan 4

    I enjoy you because of all your valuable labor on this web page. Betty really loves going through investigations and it’s really simple to grasp why. We all hear all concerning the compelling tactic you deliver rewarding guidance through the web site and even foster contribution from the others on that topic then my princess is starting to learn a whole lot. Take advantage of the remaining portion of the new year. You are always carrying out a good job.

    回复 2019年10月19日
  20. yeezy shoes

    I have to show my thanks to this writer just for bailing me out of this type of issue. As a result of looking through the world wide web and coming across methods which were not pleasant, I figured my entire life was done. Living without the presence of approaches to the issues you have solved through your main review is a serious case, as well as the ones that might have adversely affected my entire career if I had not encountered your blog post. Your primary capability and kindness in maneuvering all the stuff was vital. I am not sure what I would’ve done if I hadn’t come upon such a point like this. I can also at this point look ahead to my future. Thanks so much for your high quality and results-oriented guide. I won’t think twice to endorse your blog to any individual who desires guidelines on this subject.

    回复 2019年10月18日
  21. coach outlet store

    I am writing to let you be aware of of the perfect experience my girl gained checking your web page. She learned so many things, which include what it’s like to possess a very effective coaching character to make other individuals effortlessly grasp a variety of impossible topics. You actually surpassed readers’ desires. Thanks for offering these essential, dependable, informative and as well as easy guidance on your topic to Mary.

    回复 2019年10月18日
  22. longchamp bags

    Needed to put you a bit of note to be able to thank you once again for those exceptional techniques you have contributed on this website. It is remarkably open-handed of people like you to give openly all a number of people could possibly have marketed as an e-book to help with making some bucks for themselves, even more so given that you might have tried it if you desired. These good ideas likewise served to be a good way to be sure that many people have a similar eagerness just like my very own to see whole lot more on the subject of this issue. I know there are lots of more fun instances ahead for people who take a look at your blog post.

    回复 2019年10月17日
  23. nike air max 270

    I and my buddies were going through the best hints on your website then suddenly I got an awful feeling I never expressed respect to the web blog owner for those techniques. All the ladies happened to be certainly joyful to read all of them and have extremely been taking pleasure in these things. Many thanks for truly being quite accommodating as well as for making a decision on these kinds of fine things millions of individuals are really eager to learn about. My personal sincere regret for not expressing gratitude to earlier.

    回复 2019年10月15日
  24. christian louboutin outlet

    Needed to draft you this little remark so as to thank you so much the moment again just for the gorgeous principles you have documented on this page. It has been simply remarkably generous of people like you to provide unreservedly what a few people would have offered for an electronic book to help with making some cash on their own, certainly now that you could have tried it in the event you wanted. The pointers in addition served to become a easy way to recognize that the rest have the same dreams similar to my personal own to figure out a lot more with reference to this condition. I know there are a lot more fun opportunities in the future for people who look into your site.

    回复 2019年10月14日
  25. curry 5

    I simply wanted to thank you very much once more. I’m not certain the things I would’ve followed without the actual points documented by you relating to such topic. It had become an absolute hard matter for me personally, however , coming across a new expert mode you treated it made me to weep over joy. I am just thankful for your assistance and thus expect you recognize what an amazing job you are always doing educating others through your webblog. I am sure you have never encountered all of us.

    回复 2019年10月13日
  26. yeezy 500

    Thank you a lot for providing individuals with an exceptionally pleasant chance to read from this site. It’s usually so lovely and stuffed with a good time for me personally and my office friends to search your website particularly three times weekly to find out the newest issues you will have. And definitely, we’re certainly fulfilled with all the incredible techniques you serve. Some 4 points in this post are really the finest I have had.

    回复 2019年10月12日
  27. christian louboutin outlet

    I not to mention my buddies happened to be reading the great strategies found on the website while all of the sudden developed an awful suspicion I never thanked the website owner for those techniques. The people happened to be as a consequence warmed to read all of them and already have clearly been making the most of them. I appreciate you for genuinely well kind and then for obtaining these kinds of excellent information most people are really needing to be informed on. Our own honest apologies for not saying thanks to you sooner.

    回复 2019年10月11日
  28. yeezy boost 350 v2

    I definitely wanted to write down a small word so as to appreciate you for these stunning points you are sharing on this site. My rather long internet look up has now been compensated with reputable content to exchange with my pals. I ‘d mention that many of us readers actually are very much lucky to exist in a really good community with very many marvellous individuals with good concepts. I feel very much blessed to have come across your entire website page and look forward to really more brilliant moments reading here. Thanks once more for a lot of things.

    回复 2019年10月10日
  29. golden goose sneakers

    I have to show my respect for your kindness in support of people who require assistance with that study. Your personal commitment to passing the message across was exceedingly invaluable and has continually helped many people much like me to reach their ambitions. The invaluable help denotes a whole lot to me and especially to my peers. Many thanks; from each one of us.

    回复 2019年10月9日
  30. coach outlet

    I truly wanted to type a brief word so as to appreciate you for some of the lovely ways you are placing on this website. My time-consuming internet look up has now been paid with good strategies to go over with my friends and family. I would suppose that most of us website visitors are unequivocally fortunate to be in a really good community with very many marvellous people with insightful points. I feel very much fortunate to have encountered your entire web pages and look forward to many more enjoyable times reading here. Thank you again for everything.

    回复 2019年10月9日
  31. jordan 12

    I must express my love for your generosity in support of men and women that really want assistance with this particular field. Your real dedication to getting the message along was exceedingly significant and have constantly encouraged folks much like me to get to their dreams. Your personal warm and helpful help and advice can mean so much to me and even further to my colleagues. Thank you; from each one of us.

    回复 2019年10月8日
  32. StevDede

    Cialis 2.5 Mg From Canada viagra Xenical Sans Ordonnance Prix Elocon 5g Elocon Cream

    回复 2019年9月25日
    • best CBD oil for pain

      Your style is very unique compared to other people I have read stuff from.
      I appreciate you for posting when you’ve got the opportunity, Guess I’ll just bookmark this page.

      回复 2020年4月18日
  33. 嘿嘿

    看看

    回复 2019年4月16日