问题: 在做微信小程序的时候,可能出现跳转到tab页传参的场景,但是微信小程序文档中写了。switchTab不能带参跳转,那么这种情况可以怎么操作呢? 解决: 方法一: wx.setStorageSync('xxx',xxxxxx) 思路就是通过storage来缓存数据,跳转到tab页之后再获取st ...
分类:
微信 时间:
2020-06-22 18:49:05
阅读次数:
417
let obj = { obj1 :{ say:'hi1' }, obj2 :{ say:'hi2' } } let one = obj1 let two = say // 等于 obj.obj1.say // `` 是ESC下 TAB上的哪个键 console.log( obj[`${one}`] ...
分类:
微信 时间:
2020-06-22 13:13:20
阅读次数:
122
应用层 DHCP · DNS · FTP · Gopher · HTTP · IMAP4 · IRC · NNTP · XMPP · POP3 · SIP · SMTP · SNMP · SSH · TELNET · RPC · RTCP · RTP ·RTSP · SDP · SOAP · GTP ...
分类:
其他好文 时间:
2020-06-22 12:39:53
阅读次数:
70
将/etc/profile文件拷贝到/tmp下,并用vim打开/tmp/profile在命令模式下删除行首的空白字符[root@centos7~]#cp/etc/profile/tmp/profile[root@centos7~]#cat/tmp/profile#/etc/profile#Systemwideenvironmentandstartupprograms,forloginsetup#F
分类:
系统相关 时间:
2020-06-22 09:18:53
阅读次数:
95
添加更新与删除数据 添加数据 INSERT语句添加 (当给所有字段添加时,可以不写字段名) INSERT INTO 表名(字段名1,字段名2, ...) VALUES(值1,值2, ...) ; 还有一种添加方法: INSERT INTO 表名 SET 字段名1=值1[(,字段名2=值2,...)] ...
分类:
数据库 时间:
2020-06-22 01:29:26
阅读次数:
64
IO流 1.概念 流:数据传输通道 模型:采用Decorator装饰者模式。依照功能可以对流进行分类。 2.分类 按数据流方向: 输入流 输出流 按传输类型: 这4种均是抽象流,为所有IO流的超类 字节流(用来处理图像,视频,PPT,Word) Reader Writer 字符流(只能处理纯文本) ...
分类:
编程语言 时间:
2020-06-21 23:24:26
阅读次数:
66
将以下shell脚本保存到一个.sh文件中,然后执行就可以将80端口的request访问指向8080了 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 ...
分类:
其他好文 时间:
2020-06-21 23:00:24
阅读次数:
126
周赛地址(英):Weekly Contest 194 周赛地址(中):第 194 场周赛 仓库地址:week-Leetcode 1486. XOR Operation in an Array Given an integer n and an integer start. Define an arr ...
分类:
其他好文 时间:
2020-06-21 19:54:59
阅读次数:
61
./createuser --interactive iomsx;Shall the new role be a superuser? (y/n) nShall the new role be allowed to create databases? (y/n) nShall the new rol ...
分类:
其他好文 时间:
2020-06-21 17:42:25
阅读次数:
78
VUE实现使用富文本编辑,如下图: 实现这个富文本编辑需要以下步骤: 第一步:安装编辑器组件 npm install vue-quill-editor –-save第二步:创建一个Ue.vue的文件,放如下代码 <template> <div> <script id="editor" type="t ...
分类:
其他好文 时间:
2020-06-21 17:36:01
阅读次数:
49