摘要:
Classes - JavaScript | MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes Hoisting An important difference between function
阅读全文
posted @ 2018-09-06 09:57
papering
阅读(238)
推荐(0)
摘要:
let a =3let b = {}while(a){ eval('b.tag_'+(a-1)+'='+a*a) a--} {tag_2: 9, tag_1: 4, tag_0: 1} let a =3let b = {}while(a){eval('b.tag_'+(a-1))a--} {} c.
阅读全文
posted @ 2018-09-06 01:02
papering
阅读(1198)
推荐(0)
摘要:
const tmpTotime = function (tmp) { const t = function (i) { return i < 10 ? '0' + i : i } const date = new Date(tmp * 1000) const Y = date.getFullYear
阅读全文
posted @ 2018-09-06 00:10
papering
阅读(275)
推荐(0)
摘要:
static - JavaScript | MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/static The static keyword defines a static method
阅读全文
posted @ 2018-09-05 23:34
papering
阅读(310)
推荐(0)
摘要:
WePY根据环境变量来改变运行时的参数 · Tencent/wepy Wiki https://github.com/Tencent/wepy/wiki/WePY%E6%A0%B9%E6%8D%AE%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E6%9D%A5%E6%94
阅读全文
posted @ 2018-09-05 17:51
papering
阅读(1092)
推荐(0)
摘要:
Go语言函数类型实现接口——把函数作为接口来调用 http://c.biancheng.net/view/58.html 函数和其他类型一样都属于“一等公民”,其他类型能够实现接口,函数也可以,本节将对结构体与函数实现接口的过程进行对比。首先给出本节完整的代码: package main impor
阅读全文
posted @ 2018-09-05 17:49
papering
阅读(987)
推荐(0)
摘要:
为什么需要onRoute函数? · Tencent/wepy Wiki https://github.com/Tencent/wepy/wiki/%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81onRoute%E5%87%BD%E6%95%B0%3F 为什么
阅读全文
posted @ 2018-09-05 17:48
papering
阅读(353)
推荐(0)
摘要:
总结 1、 502没有收到相应,或者收到了但不及时? cannot get a response in time 540收到了无效的响应 received an invalid response from the upstream server, HTTP/1.1: Status Code Defi
阅读全文
posted @ 2018-09-05 17:38
papering
阅读(1892)
推荐(0)
摘要:
https://su.baidu.com/helps/index.html#/4/5a61e4b5b34f697f13234a5b Error524 源站处理超时 更新时间:2018-01-19 20:29:41 出现524错误,说明我们节点可以连接到源站,但是源站响应请求消耗的时间太长导致超时;这
阅读全文
posted @ 2018-09-05 17:25
papering
阅读(9633)
推荐(0)
摘要:
package mainimport ( "fmt" "github.com/gocolly/colly" "regexp" "strings" "github.com/mongodb/mongo-go-driver/mongo" "github.com/mongodb/mongo-go-driver/bson" "context" "log" "gopkg...
阅读全文
posted @ 2018-09-05 11:35
papering
阅读(403)
推荐(0)
摘要:
GOLANG 1.9 语言规范 - CSDN博客 https://blog.csdn.net/libing_thinking/article/details/77671607
阅读全文
posted @ 2018-09-05 10:36
papering
阅读(186)
推荐(0)
摘要:
$broadcast $broadcast事件是由父组件发起,所有子组件都会收到此广播事件,除非事件被手动取消。事件广播的顺序为广度优先搜索顺序,如上图,如果页面Page_Index发起一个$broadcast事件,那么按先后顺序依次接收到该事件的组件为:ComA、ComB、ComC、ComD、Co
阅读全文
posted @ 2018-09-05 01:31
papering
阅读(361)
推荐(0)
摘要:
mpBMCwepy\wepy.config.js eslint 信息 全局重装wepy-clinpm install wepy-cli -g -registry=https://registry.npm.taobao.org wepy目录安装依赖npm install -registry=https
阅读全文
posted @ 2018-09-04 21:43
papering
阅读(541)
推荐(0)
摘要:
121212123123412312340x5211e8123450x5211e8123450x5211e81234560x5211e812345612345670x5211e8123456
阅读全文
posted @ 2018-09-04 19:33
papering
阅读(263)
推荐(0)
摘要:
ok--> 20180904 http://cn.sonhoo.com/wukong/a215019 惠州奇异果多少钱一斤-【深圳市仁汇互联网生态科技有限公司】ok--> 20180904 http://cn.sonhoo.com/wukong/a215015 海伦钢琴基地-【深圳弹多多钢琴贸易有限
阅读全文
posted @ 2018-09-04 17:16
papering
阅读(180)
推荐(0)
摘要:
json.loads(jsonStr, encoding='utf-8')import ast ast.literal_eval(jsonStr)
阅读全文
posted @ 2018-09-04 15:29
papering
阅读(614)
推荐(0)
摘要:
1、找出url汇总页,过滤出满足条件的详情页url;2、去详情页采集信息
阅读全文
posted @ 2018-09-04 11:45
papering
阅读(626)
推荐(0)
摘要:
Configuration | Colly http://go-colly.org/docs/introduction/configuration/
阅读全文
posted @ 2018-09-04 11:18
papering
阅读(149)
推荐(0)
摘要:
random delay | Colly http://go-colly.org/docs/examples/random_delay/
阅读全文
posted @ 2018-09-04 11:17
papering
阅读(287)
推荐(0)
摘要:
JS回调函数中无法改变外部变量的问题 - CSDN博客 https://blog.csdn.net/qq_23870025/article/details/77920898 今天又遇到了上次的问题,上次只是找了个方法解决,没有搞清楚原理; 在express中,查询数据库中的数据,后通过回调函数传递给
阅读全文
posted @ 2018-09-03 18:59
papering
阅读(230)
推荐(0)
摘要:
mongo 数据库提前关闭 // mongodb - npm https://www.npmjs.com/package/mongodb const mongoCfg = { uri: 'mongodb://hbaseU:123@192.168.3.103:27017/hbase', dbName:
阅读全文
posted @ 2018-09-03 18:31
papering
阅读(2214)
推荐(0)
摘要:
Description The official MongoDB driver for Node.js. Provides a high-level API on top of mongodb-corethat is meant for end users. NOTE: v3.x was recen
阅读全文
posted @ 2018-09-03 15:42
papering
阅读(394)
推荐(0)
摘要:
http://www.cnhan.com/shantui//dynamic/get/data/allCompanyInfoByCompCode.json?compCode=6SU5YCJ http://www.cnhan.com/shantui//templates/MC530/TP001/js/t
阅读全文
posted @ 2018-09-03 14:24
papering
阅读(2121)
推荐(0)
摘要:
微信小程序开发--从px到rpx: - 简书 https://www.jianshu.com/p/e8b66de2b7b5 2rpx px
阅读全文
posted @ 2018-09-03 00:41
papering
阅读(199)
推荐(0)
摘要:
onLoad() { console.log('load') console.log(this.$parent) console.log('wepy.$appConfig') console.log(wepy.$appConfig) } <script> import wepy from 'wepy
阅读全文
posted @ 2018-09-02 23:59
papering
阅读(734)
推荐(0)
摘要:
export - JavaScript | MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export The export statement is used when creati
阅读全文
posted @ 2018-09-02 23:15
papering
阅读(350)
推荐(0)
摘要:
Redux 入门教程(一):基本用法 - 阮一峰的网络日志 http://www.ruanyifeng.com/blog/2016/09/redux_tutorial_part_one_basic_usages.html
阅读全文
posted @ 2018-09-02 22:40
papering
阅读(373)
推荐(0)
摘要:
About merge methods on GitHub - User Documentation https://help.github.com/articles/about-merge-methods-on-github/ Merge request Collapse Customize yo
阅读全文
posted @ 2018-09-02 16:23
papering
阅读(878)
推荐(0)
摘要:
ii.lstrip(' ')[0:2]=='//' ii.lstrip(' ').index('//')==0
阅读全文
posted @ 2018-09-02 09:51
papering
阅读(402)
推荐(0)
摘要:
The template root requires exactly one element
阅读全文
posted @ 2018-09-01 21:11
papering
阅读(301)
推荐(0)
摘要:
import globimport oscwd = os.getcwd()sep = os.septarget = cwd + sep + 'pages' + sep + '*' + sep + '*'filelist = glob.glob(target)pageNameSet = set([i.split('\\')[1] for i in glob.glob('./pages/*/*')...
阅读全文
posted @ 2018-09-01 20:52
papering
阅读(1049)
推荐(0)
摘要:
Configuring Git to handle line endings - GitHub Docs https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-en
阅读全文
posted @ 2018-09-01 17:53
papering
阅读(18198)
推荐(0)
摘要:
win10如何设置快捷键打开软件? - 知乎 https://www.zhihu.com/question/40466330 在win10中,将程序固定在任务栏,然后win+数字,例如win+1就会唤醒或者打开任务栏第一个应用
阅读全文
posted @ 2018-09-01 16:59
papering
阅读(611)
推荐(0)
摘要:
wepyjs - 小程序组件化开发框架 https://tencent.github.io/wepy/document.html#/?id=%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f%e7%bb%84%e4%bb%b6%e5%8c%96%e5%bc%8
阅读全文
posted @ 2018-09-01 16:24
papering
阅读(251)
推荐(0)
posted @ 2018-09-01 13:11
papering
阅读(622)
推荐(0)
摘要:
crypto-js - npm https://www.npmjs.com/package/crypto-js crypto-js/docs/QuickStartGuide.wiki
阅读全文
posted @ 2018-08-31 22:41
papering
阅读(510)
推荐(0)
摘要:
https://github.com/PuerkitoBio/goquery#apipackage mainimport ( "fmt" "log" "net/http" "github.com/PuerkitoBio/goquery")/*2018-08-30 11:54:44document.getElementsByClassName("app-news-detail__...
阅读全文
posted @ 2018-08-31 16:15
papering
阅读(493)
推荐(0)
摘要:
小结1、概念 转换 A uintptr is an integer, not a reference.Converting a Pointer to a uintptr creates an integer value with no pointer semantics.Even if a uint
阅读全文
posted @ 2018-08-31 03:41
papering
阅读(1126)
推荐(0)
摘要:
体验异步的终极解决方案-ES7的Async/Await var sleep = function (time) { return new Promise(function (resolve, reject) { setTimeout(function () { resolve(); }, time)
阅读全文
posted @ 2018-08-31 02:53
papering
阅读(554)
推荐(0)
posted @ 2018-08-31 00:45
papering
阅读(165)
推荐(0)