实现思路 首先读取当前路径下所有的文件和文件夹 当去点击某个列表项时判断其实文件还是文件夹,文件的话直接读取,文件夹则再次利用上一个步骤读取并展示 文件结构 代码 index.js 入口文件 content.js 获取内容 file.js 读取文件 dir.js 读取文件夹 js const wal ...
分类:
其他好文 时间:
2018-07-22 00:33:06
阅读次数:
213
今天和大家聊聊golang中怎么使用rpc,rpc数据传输会涉及到gob编码,所以先讲讲gob,别担心,就算你完全没有接触过gob与rpc,只要知道rpc的中文是远程过程调用,剩下的我都能给你讲明白(带你入门不包你精通)! 一、数据结构编码之gob gob全称为:Go binary Golang自带 ...
分类:
其他好文 时间:
2018-07-22 00:18:50
阅读次数:
141
``` You are given three integers a, b and x. Your task is to construct a binary string s of length n=a+b such that there are exactly a zeroes, exactly ...
分类:
其他好文 时间:
2018-07-22 00:10:00
阅读次数:
235
1.基于最简单的servlet+jsp+jdbc实现 2.实验环境:myeclipse以及tomcat 8.5 3.所需jar包: 4.数据库: 数据库用的是mysql 5.6.37 其中imag字段是MediumBlob(binary large object)类型,其中TinyBlob 最大 2 ...
分类:
数据库 时间:
2018-07-21 22:42:36
阅读次数:
328
mysql整型bigint、int、mediumint、smallint 和 tinyint的语法介绍,如下: 1、bigint 从 -2^63 (-9223372036854775808) 到 2^63-1 (9223372036854775807) 的整型数据(所有数字),无符号的范围是0到 1 ...
分类:
数据库 时间:
2018-07-21 20:31:18
阅读次数:
186
gconf-editor # 配置编辑器 /etc/vimrc # 配置文件路径 vim +24 file # 打开文件定位到指定行 vim file1 file2 # 打开多个文件 vim -O2 file1 file2 # 垂直分屏 vim -o... ...
分类:
系统相关 时间:
2018-07-21 19:18:53
阅读次数:
204
412-Same binary weight 内存限制:64MB 时间限制:0ms 特判: No 通过数:2 提交数:3 难度:3 题目描述: The binary weight of a positive integer is the number of 1's in its binary rep ...
分类:
其他好文 时间:
2018-07-21 14:52:21
阅读次数:
129
在下载页面会有2种下载分类,一个是Binaries,一个是source,一般开放原代码软件都会有两个版本发布: Source Distribution 和 Binary Distribution ,二者有啥区别?Source 是源代码版,你需要自己编译成可执行软件。 Binaries是可执行版,直接 ...
分类:
其他好文 时间:
2018-07-21 14:40:31
阅读次数:
2086
1 import org.apache.commons.codec.binary.Base64; 2 3 import javax.crypto.Cipher; 4 import java.security.*; 5 import java.security.spec.PKCS8EncodedKey... ...
分类:
其他好文 时间:
2018-07-21 14:38:35
阅读次数:
187
树状数组 基本概念 Binary Indexed Tree二叉索引树它的查询和修改的时间复杂度都是log(n),空间复杂度则为O(n). 二进制操作 如上图所示,可以写出下列式子:C1 = A1C2 = A1 + A2C3 = A3C4 = A1 + A2 + A3 + A4C5 = A5C6 = ...
分类:
编程语言 时间:
2018-07-20 16:53:29
阅读次数:
150