摘要: 第一步: npm install expo-constants --save 第二步: npm install @unimodules/core--save 第三部: npm install react-native-unimodules --save 阅读全文
posted @ 2021-01-26 10:18 张哲Zeo 阅读(193) 评论(0) 推荐(0)
摘要: 1. 在设置中配置安装的git的路径 2. 点击菜单导航 CSV 选择远程拉取,弹出下图 3.保存成功拉取 阅读全文
posted @ 2020-10-31 14:57 张哲Zeo 阅读(2951) 评论(0) 推荐(0)
摘要: 在做移动端开发时,经常会遇到滑动弹出层,底部的页面元素也跟着滑动的情景。可采取固定body元素解决此种情况: // 固定body的位置,防止移动端导航栏遮罩层弹出后底层页面内容滑动 function fixBody() { var body = document.querySelector("bod 阅读全文
posted @ 2020-09-19 15:40 张哲Zeo 阅读(173) 评论(0) 推荐(0)
摘要: 最近写项目时发现通过meta标签已无法禁止移动端双指缩放,一般的js写法也无法阻止,最终解决方案如下: 重点:passive //禁止双指放大 document.documentElement.addEventListener('touchstart', function (event) { if 阅读全文
posted @ 2020-09-02 09:03 张哲Zeo 阅读(1541) 评论(0) 推荐(0)
摘要: 1.数组排序 arr.sort(); 2.对象数组排序 arr.sort(function(a,b){ return a[item]-b[item]; }) 3.关于元素是字符串的 arr.sort(function(a,b){ return a[item]>b[item]?1:-1; }) 阅读全文
posted @ 2020-06-08 17:16 张哲Zeo 阅读(195) 评论(0) 推荐(0)
摘要: import xlwt w = xlwt.Workbook() sheet = w.add_sheet('Sheet1',cell_overwrite_ok=True) sheet.write(0,0,1) w.save('a.xls') 阅读全文
posted @ 2017-08-01 16:42 张哲Zeo 阅读(886) 评论(0) 推荐(0)
摘要: 1.需要安装 sql server 2016 数据库 2.需要安装 smms 3.需要安装jre,在官网下载是可能需要FQ 4.安装步骤可参考百度。 阅读全文
posted @ 2017-06-26 22:43 张哲Zeo 阅读(354) 评论(0) 推荐(0)
摘要: 1. 遍历 forEach 2.数组末尾增删操作 pop 和 push 3.数组前面增删操作 shit 和 unShift 4.数组任意处增删操作 slice 和 splice 5. 查询方法 indexOf 6.合并操作 join 和 concat 7. 过滤操作 filter 8.遍历操作 ma 阅读全文
posted @ 2016-11-13 19:40 张哲Zeo 阅读(160) 评论(0) 推荐(0)
摘要: RequireJS的目标是鼓励代码的模块化,它使用了不同于传统<script>标签的脚本加载步骤。可以用它来加速、优化代码,但其主要目的还是为了代码的模块化。它鼓励在使用脚本时以module ID替代URL地址。 1.初步运用 RequireJS以一个相对于baseUrl的地址来加载所有的代码。 页 阅读全文
posted @ 2016-11-08 21:31 张哲Zeo 阅读(134) 评论(0) 推荐(0)