for(let i=0;i<5;i++){ //循环内容 } ...
分类:
Web程序 时间:
2020-07-26 15:01:46
阅读次数:
75
showListView(e) { let txt = e.currentTarget.dataset.txt wx.navigateTo({ url: '/pages/list/index?title=' + txt }) } ...
分类:
微信 时间:
2020-07-26 01:27:58
阅读次数:
101
In this note,you will not find the concept of QS and the method of how to compute the cost of time and space of this algorithm。This page will not refe ...
分类:
其他好文 时间:
2020-07-26 01:23:01
阅读次数:
76
ES 2020 新功能 虽然现在浏览器的支持情况还不友好,但是先记下来总是不亏的。 1、可选的链接操作。 假设后端返回的数据是一个层级比较深的 json 数据。如果想要使用里面的项而不报错,就需要每一层先判断再使用。 let res = { user: { name: 'tom' } } conso ...
分类:
其他好文 时间:
2020-07-26 01:12:31
阅读次数:
75
// item 为 chooseImage 返回的图片 path let buffer = wx.getFileSystemManager().readFileSync(item) wx.cloud.callFunction({ name:'printedTextOCR', data: { buff ...
分类:
微信 时间:
2020-07-26 00:56:32
阅读次数:
103
以下内容为学习记录,可以参考 MDN 原文。 环境 node v12.18.1 npm 6.14.5 vscode 1.46 Microsoft Edge 83 概念 基本类型(基本数值、基本数据类型)是一种既非对象也无方法的数据。 在 JavaScript 中,共有7种基本类型: string n ...
分类:
编程语言 时间:
2020-07-26 00:50:19
阅读次数:
80
1. 批量重命名文件为数字编号 进入所需要重命名的数据集的文件夹,在终端运行 $ i=k; for x in ./*; do mv $x $i.mp4; let i=i+1; done # 'k' is the start number you want, such as 1 or 1000; '. ...
分类:
系统相关 时间:
2020-07-26 00:44:57
阅读次数:
112
vue-print-nb html2canvas handlePrint(el) { let htmlDom = document.getElementById(el) const loading = this.$loading({ lock: true, customClass: 'canvas- ...
分类:
Web程序 时间:
2020-07-26 00:40:09
阅读次数:
104
事务的特性 ACID 原子性 一致性 隔离性 持久性 通过redolog 和 doublewrite(页损坏的情况) 实现持久性 事务什么时候开启 默认自动开启,自动提交。 通过begin;命令显式开启事务;通过commit;/rollback;结束事务。 事务的隔离级别 读未提交 存在的问题:脏读 ...
分类:
数据库 时间:
2020-07-25 09:36:40
阅读次数:
101
js中动态添加的css属性,自动添加前缀,适配当前浏览器 let elementStyle = document.createElement('div').style let vendor = (() => { let transformNames = { webkit: 'webkitTransf ...
分类:
Web程序 时间:
2020-07-25 09:18:35
阅读次数:
85