logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

[vite] Cannot find module ‘node:process‘

vite打包时报错 Cannot find module ‘node:process’百度rollup.js。

文章图片
#javascript#vue.js
移动端H5(JavaScript)识别二维码功能

前言时隔一年多, 再次接触到H5识别二维码功能,这次直接写个demo方便大家学习和使用。(其实是方便自己抄自己代码…)。直接上代码<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=ed

文章图片
#javascript#前端#html5
vite Some chunks are larger than 500 kBs after minification. Consider: - Using dynamic import()

项目在打包时Some chunks are larger than 500 kBs after minification(一些区块在缩小后大于500 kB)

文章图片
#javascript#前端
JS,JQ输入框oninput事件1秒后请求接口(节流优化)

JS,JQ输入框oninput事件1秒后请求接口记录一次项目接口优化请求…首先,输入框中查询请求的数据过于庞大,在不做数据请求时间处理则会出现页面卡死的情况实现逻辑:{1. 定义全局定时器2. 输入时清除定时器3. 如果没有输入则在输入1秒后再进行数据请求}主要代码部分let searchTimer = null; //全局定时器this.$ele.on('input', '.search inp

js url参数转对象类型(对象类型转url参数)支持中文解码编码

js url参数转对象类型(对象类型转url参数)支持中文解码编码

文章图片
#javascript#前端#es6
“The `Array.prototype` contains unexpected enumerable properties: add; thus breaking e.g. `for...in`

"The `Array.prototype` contains unexpected enumerable properties: add; thus breaking e.g. `for...in` iteration of `Array`s."

文章图片
#javascript#bug#原型模式
vue 取消变量未使用时页面报错取消严格模式

变量未使用时页面报错是不是烦死了ok 两步解决打开package.json 找到 eslintConfig然后删掉 “eslint:recommended”;删掉后:第一步完成第二步 重新再跑一次项目就好啦不行?不行就再跑一次 亲测有效...

vue 百度地图报错‘BMap‘ is not defined

报错解决方法–实例时加上windowvar map = new window.BMap.Map("map"); // 创建Map实例map.centerAndZoom(new window.BMap.Point(121.551257, 38.890002), 11); // 初始化地图,设置中心点坐标和地图级别//添加地图类型控件map.addControl(new window.BMap.Map

vue统一或单独控制接口请求时间

先说统一这里将请求时间统一控制在12秒var instance = axios.create({ timeout: 1000 * 12 });instance.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';instance.interceptors.request.use(config =&g

    共 19 条
  • 1
  • 2
  • 请选择