vue,组件库按需加载 1、npm install babel-plugin-component -D2、Element-ui:import {Button} from ‘element-ui’;const element = {install: function (Vue) {const Elements = [Button]Elements.forEach(key => {Vue.use(key, {size: ‘small’,zIndex: 3000})})Vue.prototype.
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed npm run build的时候报错:FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed。网上搜了下大多数答案:npm install -g increase-memory-limit进入工程目录,执行:increase-memory-limit按照这个配置无效。然后说要把node_modules文件夹下面的"xxx"中的双引号去掉(xxx忘记什么了)。也是无效。最后可行方案:打开cmd窗口,输入命令:
360浏览器html video关闭后或者暂停后扔播放 使用jquery创建了video对象并追加到一个body中,video设置为自动播放。360浏览器上点击暂停或者使用jquery把video删除,仍能听到视频播放的声音。解决方法:不要使用jquery创建video对象,使用原生js创建,上面的问题就解决了。...
webstrom+vue-cli+elementUI jsx报红 还是谷歌好用,webstrom+vue-cli+elementUI看到这波浪线好烦,百度出来的解决方案无效。谷歌一下终于找到解决方法。https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000238170-Can-support-jsx-in-vue-file-...