Stage 5 3. Micro Services [online] studies _day02 CMS front-end development _21-CMS front page query development -Api call

Js defined method to get the data server api in which

to copy the files in the home home.js module to the next is called api directory renamed cms.js


copied the default code

actually refers to api at base / public.js file . When introduced .js end may be omitted


tools once every axios

define background data acquisition method

two public methods which get preventing the package, there are parameters with no parameters




cms in a directory on the introduction api .js

callback method then used to represent the

list of data assigned

total number of pages assigned


 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11563216.html