setup
A headless WebKit scriptable with a JavaScript API.
brew install phantomjs
A high-level browser automation library
npm install nightmare
A headless WebKit scriptable with a JavaScript API.
brew install phantomjs
A high-level browser automation library
npm install nightmare
secure copy (remote file copy program)
scp [-pr] [-l 速率] file [账号@]主机:目录名 <==上传
scp [-pr] [-l 速率] [账号@]主机:file 目录名 <==下载
scp -P端口 /path/to/file 127.0.0.1:/path/to/file
一些常用head的收集
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
搜索引擎的关键词
<meta name="keywords" content="your,keywords,here,comma,separated,no,spaces">
页面描述
<meta name="description" content="150 chars">
<meta name="language" content="en">
定义网页搜索引擎索引方式,通常有如下几种取值:none,noindex,nofollow,all,index和follow。
<meta name="robots" content="index,follow">
定义页面的最新版本
<meta name="revised" content="Sunday, July 18th, 2010, 5:15 pm">
网页作者
<meta name="author" content="name, email@example.com">
<meta name="designer" content="">
版权信息
<meta name="copyright" name="Copyright 2016"/>
修改php-fpm.conf
; - 'slowlog'
; The log file for slow requests
; Note: slowlog is mandatory if request_slowlog_timeout is set
slowlog = /var/logs/php/$pool.log.slow
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
request_slowlog_timeout = 1
开发环境,当 APP_DEBUG = true
时,使用默认错误页面;
生产环境,当 APP_DEBUG = false
时,使用自定义错误页面,异步请求返回json异常信息
php artisan 查看开发命令
php artisan make:migration create_infos_table --create=infos
php artisan make:model Models/Infos
php artisan migrate
Why React?
React is a JavaScript library for creating user interfaces by Facebook and Instagram. Many people choose to think of React as the V in MVC.We built React to solve one problem: building large applications with data that changes over time.
Simple
Declarative
Build Composable Components
In fact, with React the only thing you do is build components
.
ECMAScript 6(以下简称ES6)是JavaScript语言的下一代标准,于2015年6月批准通过。ECMAScript6的目标,是使得JavaScript语言可以用来编写复杂的大型应用程序,成为企业级开发语言。让代码更加准确,更易于阅读。
ECMAScript是JavaScript语言的国际标准,JavaScript是ECMAScript的实现(ES是规范,JS是实现)。在日常场合,这两个词是可以互换的。
显示全文两种极端的方式
(1)每个模块文件都单独请求,请求次数过多,应用启动速度慢。
(2)把所有模块打包成一个文件然后只请求一次,导致流量浪费、初始化过程慢。
合理的方式
分块传输,按需进行懒加载,在实际用到某些模块的时候再增量更新
显示全文