how does the Vue project realize one-click skinning on a website
The item is the less, in which the css style is used and is written in the .vue
file
how to change the color of the website with one click
how does the Vue project realize one-click skinning on a website
The item is the less, in which the css style is used and is written in the .vue
file
how to change the color of the website with one click
extract the styles involved in skinning-"basicSkin.less, plus other color-*.less, the introduction of basicSkin.less, can be distinguished by introducing all of them, and then setting the color id on the outer layer, or dynamically introduce the style
css Custom attribute + css-vars-ponyfill (solve compatibility)
css Custom attribute: https://developer.mozilla.org.
css-vars-ponyfill: https://github.com/jhildenbid.
change css stylesheet
css-modules + vuex
essence is to modify the stylesheet. There are too many plans, depending on the project, how convenient to come.
Previous: Loop executes this function, why the value obtained is not accumulated
Next: The interface written by express+mongoose will report an error the second time it is requested.