vue3 antd项目实战——radiogroup单选组合、radiobutton单选按钮【v-model双向绑定数据、v-for循环输出options选择项】
2024-05-09一文带你学会vue3 ant design vue项目实战——Radio单选框【后台管理系统 v-model双向绑定、v-for循环输出】_a-radio-group
#typescript 使用file-saver模块#
2024-05-092: 执行npm run build 提示错误If you do want to externalize this module explicitly add it to `build.rollupoptions.external`场景:前端使用file-saver模块做导出文档的时候,出现两个错误。1:npm run build 提示找不到模块,如图。原因:主要是这个要作为外部资源引入到编译的代码中。要解决这个问题,可以将该模块添加到。例如,假设我们有一个名为。_if you do want to externalize this module explicitly add it to `build.rollup
jQuery 学习归纳1 --- jQuery 常用API
2024-05-08(1)params: 想要更改的样式属性,以对象形式传递,必须写。属性名可以不用带引号, 如果是复合属性则需要采 取驼峰命名法 borderLeft。其余参数都可以省略。(2)speed:三种预定速度之一的字符串(“slow”,“normal”, or “fast”)或表示动画时长的毫秒数值(如:1000)。(3)easing:(optional) 用来指定切换效果,默认是“swing”,可用参数“linear”。(4)fn: 回调函数,在动画完成时执行的函数,每个元素执行一次。
html2canvas实现生成图片以及易出错点
2024-05-07html2canvas 将html元素转为图片html2canvas(element,options).then((canvas) =>{})基本使用参数scale:缩放比例,默认为1allowTaint:是否允许跨域图像污染画布,默认为falseuseCORS:是否尝试使用CORS从服务器加载图像,默认为falsewidth:canvas画布的宽度,默认为jQuery对象的宽度height:canvas画布的高度,默认为jQuery对象的高度backgroundColor:_html2canvas生成的图片有normal
HTML5(八)——SVG 之 path 详解,阿里巴巴二面被血虐
2024-05-07createElementNS 是创建一个具有指定的命名空间URI和限定名称的元素。使用语法:document.createElementNS(namespaceURI, qualifiedName[, options]);namespaceURI 指定与元素相关联的命名空间URI的字符串。创建的元素的namespaceURI (en-US)属性使用namespaceURI的值进行初始化。qualifiedName指定要创建的元素的类型的字符串。_html中的path标签
vue3 vite js 配置Eslint prettier_vite js vue3配置eslint
2024-05-06proseWrap: ‘preserve’, // 使用默认的折行标准 参考 https://prettier.io/docs/en/options.html#trailing-commas。trailingComma: ‘none’, // 代码末尾不需要逗号 参考 https://prettier.io/docs/en/options.html#prose-wrap。‘jsx-quotes’: [2, ‘prefer-single’], // 强制在JSX文件中一致使用单引号。_vite-plugin-eslint
rollup打包时配置文件参数
2024-05-050. rollup.config.js配置文件概要// rollup.config.js// can be an array (for multiple inputs)export default [ configObj];var configObj = { // core input options external, input, // conditionall..._rollup inlinedynamicimports
echarts 画中国地图
2024-04-30数据可视化平台,中国各省数据和坐标阿里云可视化效果使用echart画中国地图,步骤如下1.安装依赖npm i echarts创建一个js文件当你可以访问https请求的时候则使用,如下代码import axios from "axios";export default axios.get("https://geo.datav.aliyun.com/areas_v3/bound/100000_full.json")如果无法请求https接口,则直接导入3。配置option配_echarts中国地图
option ‘importsNotUsedAsValues‘ is deprecated and will stop functioning in TypeScript 5.5. Specify c
2024-04-29ts项目中报错:option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compileroption '"ignoreDeprecations": "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead.ts_option 'importsnotusedasvalues' is deprecated and will stop functioning in t
VsCode 执行 npm run dev 失败
2024-04-29执行 npm run dev 时 启动失败. _note that the development build is not optimized. to create a production bui