How to use public Vue project js way to do that?

 

Scan code applets can see examples of the operation, so what's the problem also scan code plus group, hope can help to you Oh!

 

              

 

 

First, create a new folder: commFunction, and then create a file inside common.js

 

 Second, after the establishment of good, in which the introduction of the common method main.js

 

Third, still call this method in the page

 

have a test:

1 export default{
2     login:function(){
3           console.log("1111");
4     }
5 }

The last view in a browser at that file vue introduced in

 

Guess you like

Origin www.cnblogs.com/CinderellaStory/p/11512274.html