- 博客(76)
- 收藏
- 关注
原创 npm install 报错 npm ERR! While resolving: ant-design-pro
npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!npm ERR!使用 命令。
2024-10-21 10:07:31
684
1
原创 gitlab 转移项目
查看当前分支 是否为master,如果为main,创建master分支。git remote add origin 新的url。git clone 旧项目url。
2024-04-10 10:46:04
414
原创 git 提交代码 类型
ci:主要目的是修改项目继续集成流程(例如 Travis,Jenkins,GitLab CI,Circle等)的提交。build:主要目的是修改项目构建系统(例如 glup,webpack,rollup 的配置等)的提交。style:不影响程序逻辑的代码修改(修改空白字符,补全缺失的分号,格式化代码等)refactor:重构代码(既没有新增功能,也没有修复 bug)chore:不属于以上类型的其他类型(日常事务)test:新增测试用例或是更新现有测试。revert:回滚某个更早之前的提交。
2024-01-18 18:42:43
439
原创 LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
2023-01-13 11:18:29
217
原创 sh: build/xxx.sh: Permission denied
用户没有权限操作sh文件运行命令:chmod777 build/xxxx.sh
2022-05-18 20:53:11
617
原创 flutter ListView 报 RangeError (index): Invalid value: Only valid value is 0: 1
new ListView.builder(padding: const EdgeInsets.all(16.0),itemCount: _suggestions.length,itemBuilder: (context, index) {return _buildRow(_suggestions[index]);});加itemCount 属性
2021-12-16 11:15:27
3342
原创 PC 创建txt文档
export function createTxtFile(filename: string, text: string) {if (!filename || !text) {return}const element = document.createElement('a')element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text))element.setAttribute(
2021-12-13 19:25:21
1025
原创 Flutter 打包 flutter build apk时 permission-handle报错
检查 android/app/build.gradle 文档中compileSdkVersion版本号 和android studio 中的 android sdk 下的 Android api 版本一致
2021-12-10 09:59:15
1420
原创 引用时间插件 react-native-date-picker
import DatePicker from 'react-native-date-picker';<DatePickermodalopen={openOpenDate}date={new Date()}mode="date"title="选择时间"locale="zh-Hans"androidVariant="iosClone"confirmText="确认"cancelText="取消"onConfirm={(date) => {}}o
2021-11-03 17:56:11
646
原创 百度地图 创建文本标注对象
// 创建文本标注对象const len = this.centerMap.lengthconst opts = {position: this.mPoint, // 指定文本标注所在的地理位置offset: new BMap.Size(-(len * 7), -30) // 设置文本偏移量}const spanA='<div style="color:#00B9EF;text-align:center;margin-top:-14px;"><span class=
2021-05-20 10:25:28
487
原创 el-select for 循环下 传下标
<el-select v-model="item.sellStatus" placeholder="请选择" clearable @change="(val) => changeSellStatusEvent(val, index)" > <el-option v-for="item in SellStatusEnum" :key="item.name" :label="item.desc...
2021-03-15 09:59:55
906
原创 nginx: [error] invalid PID number ““ in “/usr/local/var/run/nginx.pid“
sudo nginx -c /usr/local/etc/nginx/nginx.conf
2021-01-04 16:12:01
230
原创 gulp4.0 gulpfile.js 压缩html js css images
var gulp = require('gulp');var uglify = require('gulp-uglify');var minifyCSS = require('gulp-minify-css');// 压缩html插件var minifyHTML = require('gulp-htmlmin');var image = require('gulp-imagemin');var clean = require('gulp-clean');//清理文件或文件夹.
2021-01-04 10:09:35
260
原创 IOS原生 配置RN第三方组件
## 一、模块名:HybridComponent #### 二、启动新房RN的项目项目> 步骤 运行项目 为了减少RN库文件 编译 将RN库工程编译成 .a 库文件> > 1、 真机 debug> > 2、 真机 release> > 3、 模拟器 debug> > 4、 模拟器 release> > 5、 最后合并.a 文件 1- 3 2-4 合并方式参考第四点 ...
2020-12-31 15:37:51
379
原创 Unknown argument type ‘__attribute__‘ in method -[RCTAppState getCurrentAppState:error:]
在Xcode搜索RCTParseUnused 方法,修改为:staticBOOLRCTParseUnused(constchar**input){returnRCTReadString(input, "__unused") || RCTReadString(input, "__attribute__((__unused__))") || RCTReadString(input, "__attribute__((unused))")...
2020-09-23 18:57:37
180
原创 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused把系统偏好设置-网络-DNS 改为 114.114.114.114
2020-09-15 19:32:26
155
原创 nginx 文件地址
命令行 输入open /usr/local/etc/nginx/ 即可找到该文件启动命令sudo nginx重启命令sudo nginx -s reload
2020-08-20 16:32:52
202
原创 el-autocomplete v-for 循环 @select 传递下标
v-for 循环 传递 index<el-autocomplete v-model="city" :fetch-suggestions="queryCity" placeholder="" @select="((item) => {selectCity(item, index)})"></el-autocomplete>
2020-07-23 16:43:46
736
原创 react-native android 打包生成的 .bundle .map文件 解析 压缩前的 源码 报错位置
1.安装source-mapnpm install source-map2.在.map 文件同目录下 建 sourceMap.js文件const sourceMap = require('source-map');const fs = require('fs');// read fileconst readFile = function (filePath) {retu...
2019-10-29 15:31:32
948
原创 IOS开发 页面跳转
三种方式IndexController *VC =[ [IndexController alloc] init];1.[[[UIApplication sharedApplication] delegate] window].rootViewController = VC;2.[self presentViewController:VC animated:YES complet...
2019-09-25 10:13:22
611
原创 mac 管理者权限
设置管理者权限密码1.打开命令行2.sudo passwd root3.输入密码 输入校验密码 (密码是看不到的,直接输)登录管理者账户1.打开命令行2.su root3.输入密码...
2019-09-18 14:19:57
662
原创 react-native TextInput 键盘 返回键设置 调用键盘的类型
返回键类型 returnKeyType ='default||go||google||join||next||route||search||send||yahoo||done||emergency-call'键盘的类型keyboardType ='default||ascii-capable||numbers-and-punctuation||url||number-p...
2019-09-06 16:45:21
1911
原创 json 数组 获取key值。并按字母顺序排列
数据:const data={"B":[{"cityName":"北京","code":"110100"}],"S":[{"cityName":"上海","code":"310100"},{"cityName":"深圳","code":&q
2019-02-15 16:17:01
2866
原创 小程序 上传图片 相册 拍照
wx.chooseImage({ count: 1, // 张数, 默认9 sizeType: ['compressed'], // 建议压缩图 sourceType: ['album'], // 来源是相册 camera:拍照 success: (res) => { if (res.tempFiles[0] &&a...
2019-01-25 16:45:35
757
原创 小程序 复制功能
wx.setClipboardData({ data: '010', //必须是字符串 不是要转.toString() success(response) { wx.showToast({ title: '复制成功', icon: 'none', }); }, });...
2019-01-25 16:39:02
825
原创 vue css >>> /deep/ 穿透
vue引用了第三方组件,需要在组件中局部修改第三方组件的样式,而又不想去除scoped属性造成组件之间的样式污染。此时只能通过>>>,穿透scoped。有些Sass 之类的预处理器无法正确解析 >>>。可以使用 /deep/ 操作符( >>> 的别名)<style scoped> 外层 >>> 第三方
2019-01-10 15:14:11
51103
1
原创 安装charles文档 流程
1.安装charles 证书:// Charles Proxy License// 适用于Charles任意版本的注册码,谁还会想要使用破解版呢。// Charles 4.2目前是最新版,可用。Registered Name: https://zhile.ioLicense Key: 48891cf209c6d32bf4配置:到钥匙串访问 添加信任...
2019-01-10 14:30:31
2788
原创 小程序 tabBar右上角 加标志 加数字提醒
显示数字或文字wx.setTabBarBadge({ index: 4, text: ‘new’, //可改 });移除文字wx.removeTabBarBadge({ index: 4,});//加红点wx.showTabBarRedDot({index: 4,});移除红点wx.hideTabBarRedDot({index: 4,...
2019-01-09 10:57:11
6587
2
原创 git 提交代码 如果有冲突 如何解决
git add . git commit -m '.........' git pull --rebase #获取最新代码 (如果有冲突,继续一下步骤,如果无 直接git push) git status (查看冲突的文件) git add (修改冲突文件后,添加文件到缓存区) git rebase --continue git commit --amend git pus...
2018-12-25 10:32:55
6785
1
转载 滑动事件 左滑 右滑
// 滑动开始事件handletouchtart(e) {this.data.lastX = e.touches[0].pageX;this.data.lastY = e.touches[0].pageY;},handletouchend(event) {const touchMoveX = event.changedTouches[0].pageX;const tou...
2018-11-29 14:56:24
1533
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人