- 博客(43)
- 收藏
- 关注
原创 Failed to read the ‘localStorage‘ property from ‘Window‘: Access is denied f
浏览器或者无痕模式打开iframe 报错打不开在浏览器设置中
2021-12-10 20:20:19
1382
原创 小程序web-view点开后,打开图片或者新页面后返回页面表头变红?(已解决)
已经解决了这个问题是由wx.setNavigationBarColor({frontColor: ‘#000000’,backgroundColor: ‘#ff0000’,animation: {duration: 400,timingFunc: ‘easeIn’}})影响的,我在App.vue全局配置了这个设置,先把全局App.vue的去掉,在webview页面不能配置这个设置,去掉后表头就不会变红了...
2021-12-10 16:47:19
674
原创 git push的时候已经在gitignore加上了,但是还是传上去了怎么解决
1.先把本地的不上传的文件删除2.执行 commit push的操作3.然后把本地文件恢复4.执行 commit push的操作就不会把这个文件带上了
2021-11-02 10:53:32
760
原创 设置页面顶部导航条颜色
wx.setNavigationBarColor({ frontColor: '#000000', // 前景颜色值,包括按钮、标题、状态栏的颜色,仅支持 #ffffff 和 #000000 backgroundColor: '#ff0000', // 背景颜色值 animation: { // 动画效果 duration: 400, timingFunc: 'easeIn' } }).
2021-11-02 10:47:12
702
原创 小程序蓝牙信标定位
// 第一步 初始化蓝牙模块 openBluetoothAdapter() { uni.openBluetoothAdapter({ success: (res) => { console.log('第一步、蓝牙初始化成功', res) // 开始搜索附近蓝牙 this.startBluetoothDevicesDiscovery() }, fail: (res) =>
2021-08-20 16:49:38
1956
原创 eslint react
// 配置说明 https://alloyteam.github.io/eslint-config-alloy/?language=zh-CN// 因为eslint开启了缓存,并且没有提供清缓存回调,所以当修改配置后,需手动执行 npm run clear 清理缓存。这样配置才会生效。module.exports = { root: true, // 此项是用来告诉eslint找当前配置文件不能往父级查找 parserOptions: { parser: 'babel-eslint',
2021-07-27 12:00:03
424
原创 vscode eslint vue
{ // vscode默认启用了根据文件类型自动设置tabsize的选项 "editor.detectIndentation": false, // #每次保存的时候将代码按eslint格式进行修复 "eslint.autoFixOnSave": true, // 添加 vue 支持 "eslint.validate": [ "javascript", "javascriptreact", { "langua
2021-07-27 11:58:36
72
原创 react antd from input 校验空格
whitespace: true,校验空格阻拦<Form.Item className="no-label salary-input" label="手机号" name="tel" rules={[ { required: true, message: '请输入手机号', }, { whitespace: true }, ]}
2021-06-25 14:19:03
1883
1
原创 react 生成中间镶嵌名字的小程序二维码并下载
1.需要安装两个插件import QRCode from 'qrcode.react';import domtoimage from 'dom-to-image';2.生成文字图片dom代码 const [textImg, setTextImg] = useState('') // 文字图片链接 // 调用字体转图片 useEffect(()=>{ getImg() },[visible]) const getImg = () =&g
2021-06-25 14:15:54
469
原创 vscode 插件使用
Autoprefixer css自动补全Auto Rename Tag 重命名一个HTML / XML标签时,自动重命名配对的HTML / XML标签GitLens(1)SEARCH & COMPARE Compare References 比较两个分支的不同Vetur vue页面展示清晰,将白色代码转为彩色...
2021-05-17 22:40:57
255
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人