05 2023 档案
摘要:``` var Vue, walker, node; walker = document.createTreeWalker(document.body,1); while ((node = walker.nextNode())) { if (node.__vue__) { Vue = node.__
阅读全文
摘要:``` 虽然上面这些方法都可以创建层叠上下文,但有些方法却会影响到其子元素或者自身的样式。比如: opactiy 会改为元素及其后代元素的透明度; mix-blend-mode 会改变元素及其后代元素的 UI 效果; filter 会改变元素及其后代元素的 UI 效果; …… 相比而言,我更喜欢 i
阅读全文
摘要:``` /** * @param { Promise } promise * @param { Object= } errorExt - Additional Information you can pass to the err object * @return { Promise } */ ex
阅读全文
摘要:``` 1.直接修改 封装的axios host 使用浏览器跨域 2. hostconfig.js module.exports = { "target": "http://xxxxxx" }; vue.config.js /* target: 'that must have a empty pla
阅读全文
摘要:const os = require("os"); const path = require("path"); const ESLintWebpackPlugin = require("eslint-webpack-plugin"); const HtmlWebpackPlugin = requir
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
摘要:宏任务有: <script>标签中的运行代码 setTimeout、setInterval的回调函数 事件触发的回调函数,例如DOM Events、I/O、requestAnimationFrame、Ajax、UI交互等 微任务有: Promise的回调函数:then、catch、finally M
阅读全文