上一页 1 2 3 4 5 6 ··· 11 下一页
//SHA1 加密 function encodeUTF8(s) { var i, r = [], c, x; for (i = 0; i < s.length; i++) if ((c = s.charCodeAt(i)) < 0x80) r.push(c); else if (c < 0x800 Read More
posted @ 2022-10-09 16:49 秃头的铲屎官 Views(470) Comments(0) Diggs(0) Edit
在开发企业微信第三方应用时,使用JSApi。初始化wx.config时没有报错,并在jsApiList里加上了previewFile。 经过测试,发现IPhone端wx.previewFile为undefined。 当前调用方式: wx.previewFile({ url: url, // 需要预览 Read More
posted @ 2022-10-08 15:52 秃头的铲屎官 Views(436) Comments(0) Diggs(0) Edit
之前写的一个uniapp的项目,这段时间又看了一下,在打包的APP中发现webview打开显示空白(以前的时候没问题) 一开始以为是链接问题,跨域问题,总之就是各种尝试了 因为小程序上没问题,一开始没想到从webview的高度上出发 最后果然是高度问题(EMO~~~~) 最后给style设置动态高度 Read More
posted @ 2022-09-28 10:13 秃头的铲屎官 Views(2477) Comments(0) Diggs(0) Edit
第一步:执行以下命令: npm run eject 第二步:在package.json 中修改代码 "eslintConfig": { "extends": [ "react-app", "react-app/jest" ], "rules":{ "no-undef":"off" } }, 第三步: Read More
posted @ 2022-09-13 15:50 秃头的铲屎官 Views(1712) Comments(0) Diggs(0) Edit
v5中的嵌套路由: 主页面v5中使用{this.props.children}来接收子页面 import React, { Component } from 'react'; export default class About extends Component { render() { retu Read More
posted @ 2022-09-09 17:52 秃头的铲屎官 Views(291) Comments(0) Diggs(0) Edit
使用react中的router v6版本踩坑记录。 根据报错的意思提示大概就是要给路由提供一个上下文 一开始我的index.js是这样的: import React from 'react'; import ReactDOM from 'react-dom/client'; import './in Read More
posted @ 2022-09-09 17:09 秃头的铲屎官 Views(1491) Comments(0) Diggs(0) Edit
使用Route报错:A <Route> is only ever to be used as the child of <Routes> element, never rendered directl 报错原因是react-router-dom依赖为6版本,需要使用6版本的写法 function r Read More
posted @ 2022-09-09 17:02 秃头的铲屎官 Views(432) Comments(0) Diggs(0) Edit
在项目中,vuepress写文档说明时,加载element-ui报错 解决办法: npm install async-validator@1.11.5 Read More
posted @ 2022-09-07 14:37 秃头的铲屎官 Views(191) Comments(0) Diggs(0) Edit
原因是使用class定义组件的时候 component写成小写的,如下: class Page extends React.component 正确的应该是:(Component要大写) class Page extends React.Component Read More
posted @ 2022-09-01 16:43 秃头的铲屎官 Views(746) Comments(0) Diggs(0) Edit
效果如下: html代码: <div class="table-box cus-table-box"> <el-table :data="ruleForm.tableData" border style="width: 100%"> <el-table-column prop="operation" Read More
posted @ 2022-08-26 16:20 秃头的铲屎官 Views(2193) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 ··· 11 下一页