摘要: 一、 阅读全文
posted @ 2018-07-01 19:56 arun_python 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 一、咱们经常会遇到浏览器给encode后的url,如何转换成咱们都能识别的url呢?很简单,talk is easy,Please show me your code,如下所示: (1)英文decode (2)中文decode(站长工具) http://tool.chinaz.com/tools/u 阅读全文
posted @ 2018-06-27 01:15 arun_python 阅读(350) 评论(0) 推荐(0) 编辑
摘要: Python是运行在解释器中的语言,查找资料知道,python中有一个全局锁(GIL),在使用多进程(Thread)的情况下,不能发挥多核的优势。而使用多进程(Multiprocess),则可以发挥多核的优势真正地提高效率。 对比实验 资料显示,如果多线程的进程是CPU密集型的,那多线程并不能有多少 阅读全文
posted @ 2018-06-10 23:36 arun_python 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 一、 https://msdn.microsoft.com/zh-cn/library/ff679976(v=vs.94).aspx 二、ip地址转换成对应的二进制. 输出=> 10101100 00010000 00000000 00000101 阅读全文
posted @ 2018-06-04 07:12 arun_python 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 一、 Reference: http://www.w3school.com.cn/jquery/jquery_syntax.asp https://datatables.net/ #官网 http://datatables.club/example/diy.html #自定义表格插件的重要demo 阅读全文
posted @ 2018-05-26 15:46 arun_python 阅读(279) 评论(0) 推荐(0) 编辑
摘要: ReactJS 的核心思想是组件化,即按功能封装成一个一个的组件,各个组件维护自己的状态和 UI,当状态发生变化时,会自定重新渲染整个组件,多个组件一起协作共同构成了 ReactJS 应用。 为了能够更好的创建和使用组件,我们首先要了解组件的生命周期。 一、组件的生命周期 组件在整个 ReactJS 阅读全文
posted @ 2018-05-26 13:32 arun_python 阅读(153) 评论(0) 推荐(0) 编辑
摘要: npm是什么 NPM的全称是Node Package Manager,是随同NodeJS一起安装的包管理和分发工具,它很方便让JavaScript开发者下载、安装、上传以及管理已经安装的包。 一、npm常用命令参数如下. (1) (2) (3) 阅读全文
posted @ 2018-05-20 23:33 arun_python 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 一、js的对象的解构赋值 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment 二、 ES6标准发布后,module成为标准,标准的使用是以export 阅读全文
posted @ 2018-05-18 19:48 arun_python 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 一、推荐brew来对node和npm版本进行管理。 二、更改为淘宝的源 https://npm.taobao.org/ Reference: https://www.jianshu.com/p/20ea93641bda https://npm.taobao.org/ 阅读全文
posted @ 2018-05-16 15:20 arun_python 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 一、Single Thread Non-Blocking I/O. 非阻塞式IO适用于IO密集型,把io阻塞交给linux系统模块(如图中的Posix Async Threads)去处理。 二、Multi Threaded Server 线程维护和线程上下文切换都会消耗资源。 阅读全文
posted @ 2018-05-13 21:49 arun_python 阅读(125) 评论(0) 推荐(0) 编辑