different css files need to be referenced dynamically according to the data returned in the background. Considering that import cannot use variables, it is effective to use require,
, but it is not very good
,
how should I write it?
different css files need to be referenced dynamically according to the data returned in the background. Considering that import cannot use variables, it is effective to use require,
, but it is not very good
,
how should I write it?
can be written as follows:
import('../index.css').then(() => {})
set style <style lang="scss" scoped> * { margin: 0; padding: 0; box-sizing: border-box; } < style> found that it is only valid for some elements. all valid after being changed to deep .editor deep { * { ...