02 2023 档案

摘要:一个有宽度 高度 和padding 以及border的盒子到底有多大 答:宽度 加padding 加border 的总和 验证代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-U 阅读全文
posted @ 2023-02-28 10:06 小白字太白 阅读(11) 评论(0) 推荐(0) 编辑
摘要://更详细的配置文档请参考:https://github.com/vuejs/eslint-plugin-vue#gear-configs module.exports = { "extends": "plugin:vue/base", "parserOptions": { "ecmaVersion 阅读全文
posted @ 2023-02-26 19:39 小白字太白 阅读(49) 评论(0) 推荐(0) 编辑
摘要:let str = 'abcdefabcdefabcdeadfkjafd'; let obj = {}; for (let index = 0; index < str.length; index++) { if (obj[str[index]]) { obj[str[index]]++ }else 阅读全文
posted @ 2023-02-23 12:59 小白字太白 阅读(77) 评论(0) 推荐(0) 编辑
摘要:<script> import axios from 'axios' // import china from '../../public/static/map/china.json' export default { data () { return { chartInstance: null, 阅读全文
posted @ 2023-02-21 22:03 小白字太白 阅读(144) 评论(0) 推荐(0) 编辑
摘要:参数描述 function(total,currentValue, index,arr) 必需。用于执行每个数组元素的函数。函数参数: 参数描述 total 必需。初始值, 或者计算结束后的返回值。 currentValue 必需。当前元素 currentIndex 可选。当前元素的索引 arr 可 阅读全文
posted @ 2023-02-20 23:00 小白字太白 阅读(46) 评论(0) 推荐(0) 编辑
摘要:方法一 我们通常使用element-ui form表单组件时 点击表单重置按钮清空form表单数据 使用表单ref属性对象的resetFields() 方法可以重置表单 <template> <el-button @click="resetForm('ruleForm')">重置</el-butto 阅读全文
posted @ 2023-02-15 15:15 小白字太白 阅读(1362) 评论(0) 推荐(0) 编辑
摘要:vue.config.js中 devServer: { port: port, open: true, overlay: { warnings: false, errors: true }, //配置代理跨域 proxy: { '/dev-api': { target: 'http://39.98. 阅读全文
posted @ 2023-02-04 13:17 小白字太白 阅读(9) 评论(0) 推荐(0) 编辑
摘要:"editor.codeActionsOnSave": { "source.fixAll.eslint": true, "eslint.autoFixOnSave" : true, }, 在插件中 扩展设置 工作区加入此代码 "editor.codeActionsOnSave":{ "source. 阅读全文
posted @ 2023-02-04 10:25 小白字太白 阅读(91) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示