javascript - What do "HTML template" and "string template" in the vue document mean?
伊谢尔伦2017-06-15 09:23:18
0
1
795
In the component naming convention chapter of the Vue official document, "HTML template" and "String template" are mentioned. What do they mean specifically?
HTML template should refer to native HTML, mounted to the Vue instance through el. As mentioned in the DOM-Template Parsing Instructions chapter, there are some limitations of HTML template parsing
HTML Template
HTML template should refer to native HTML, mounted to the Vue instance through
el
. As mentioned in the DOM-Template Parsing Instructions chapter, there are some limitations of HTML template parsinghttps://jsfiddle.net/hugaungj...
String Template
ie
JavaScript inline template string
They don’t refer to the same thing.