Rendering Vue page

1. subassembly components locally rendering

new new Vue ({ 
    EL: "app #", 
  Components: {
    Login, // Render Login subassembly elements in the app.
  } })

 

2. el performs the specified render the entire element is covered and render react in the same method.

new new Vue ({ 
  
   EL: "#app" , 
  // about to render the entire app elements are rendered into templateName contents of   
  the render:
function (createElement) {// createElement is a function   return createElement (templateName); } })

 

Guess you like

Origin www.cnblogs.com/panjingshuang/p/11984054.html