摘要: option = { tooltip: { trigger: 'axis', axisPointer: { // Use axis to trigger tooltip type: 'shadow' // 'shadow' as default; can also be 'line' or 'sha 阅读全文
posted @ 2022-07-12 17:38 张哲Zeo 阅读(627) 评论(0) 推荐(0)
摘要: 查看npm源: npm get registry 国内设置淘宝源: #官方:http://www.npmjs.org npm config set registry http://registry.npm.taobao.org 如果不想全局设置,也可安装时临时指定: npm install --re 阅读全文
posted @ 2022-07-12 10:53 张哲Zeo 阅读(155) 评论(0) 推荐(0)
摘要: 1. git本地分支目录和远程服务器的分支目录不一样的同步方法 git remote update origin --prune 阅读全文
posted @ 2022-04-27 10:43 张哲Zeo 阅读(11) 评论(0) 推荐(0)
摘要: 使用yarn时,出现如下错误,可通过下列方法解决 1. 搜索powershell,然后以管理员身份运行 2. 输入 set-ExecutionPolicy RemoteSigned 回车 在弹出的内容后面 输入Y 然后关闭即可 按照上面两个步骤执行后,即可使用yarn安装依赖了 阅读全文
posted @ 2022-04-13 14:56 张哲Zeo 阅读(2280) 评论(0) 推荐(1)
摘要: getQueryParam: function(name){ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if(r 阅读全文
posted @ 2021-08-06 15:17 张哲Zeo 阅读(106) 评论(0) 推荐(0)
摘要: // 检测是否为中文,true表示是中文,false表示非中文 const isChinese = (str) => { // 中文万国码正则 if (/[\u4E00-\u9FCC\u3400-\u4DB5\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA 阅读全文
posted @ 2021-08-06 15:06 张哲Zeo 阅读(234) 评论(0) 推荐(0)
摘要: 1. 通过扩展jQuery html代码 <div style="width: 300px;height: 500px; border: 1px solid red;overflow: scroll;"> <div id="scoll" class="scroll"> <div style="wid 阅读全文
posted @ 2021-08-06 15:00 张哲Zeo 阅读(147) 评论(0) 推荐(0)
摘要: // 转化UTC时间 function transUTCTime(fmt,date){ let ret; date = new Date(date) const opt = { "Y+": date.getUTCFullYear().toString(), // 年 "m+": (date.getU 阅读全文
posted @ 2021-08-06 14:54 张哲Zeo 阅读(74) 评论(0) 推荐(0)
摘要: } const jsGetAge = (strBirthday) => { var date = new Date(strBirthday); date = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() 阅读全文
posted @ 2021-08-06 14:47 张哲Zeo 阅读(170) 评论(0) 推荐(0)
摘要: RN 0.63 版本安装 AntDesign 爬坑记录 环境配置参考RN文档即可 Step 初始化项目 npx react-native init ProjectName 引进AntDesign cd ProjectName npm install @ant-design/react-native 阅读全文
posted @ 2021-01-29 16:14 张哲Zeo 阅读(517) 评论(0) 推荐(0)