- 博客(10)
- 收藏
- 关注
原创 前端常用框架
jquery jquery ui 1 http://www.jqueryui.org.cn/demo/ 2 http://www.runoob.com/jqueryui/jqueryui-tutorial.html layui 1 http://www.layui.com/doc/ 2 http://www.layui.com/...
2018-04-28 17:40:51 153
原创 WebViewJavascriptBridge 交互
function setupWebViewJavascriptBridge(callback) { //第一次调用这个方法的时候,为false if (window.WebViewJavascriptBridge) { return callback(WebViewJavascriptBridge); } //第一次调用的时候,为false ...
2018-04-27 15:08:55 861
原创 关于向后台的请求 axios ajax jsonRpc fetch
原ajax携带cookie$.ajax({ xhrFields:{ widthCredentials:true}, contentType:"application/json", credentials:"include", crossDomain:"true", headers:{设置自定义的名字及值}}) 常用的参数:ty...
2018-04-27 14:57:13 1371 1
原创 eslint 规则 解释
/* eslint 所有规则 */"no-alert": 0,//禁止使用alert confirm prompt"no-array-constructor": 2,//禁止使用数组构造器"no-bitwise": 0,//禁止使用按位运算符"no-caller": 1,//禁止使用arguments.caller或arguments.callee"no-catch-shadow": 2,//禁止...
2018-04-27 14:33:15 2536
原创 es6转es5
安装node,npm;安装依赖 "babel-core": "^6.26.0", //禁止严格模式的检查 "babel-plugin-transform-remove-strict-mode": "0.0.2", "babel-preset-es2015": "^6.24.1"package.json文件"scripts": { //简化命令 &q
2018-04-27 14:31:33 101
原创 webpack简易配置
webpack 也是依赖nodejs和npm的;安装 node ,npm;//全局安装webpack npm install webpack -g //安装在项目的依赖项里 package.json里 npm install webpack --save-dev webpack 配置项module.export={ entry:""//入口文件 引入的文件output:{ path:"路径",_d...
2018-04-27 14:30:14 320
原创 node爬虫(免登陆)
var http = require('http');var request = require('request');var cheerio = require('cheerio');var fs = require('fs'); //用来操作文件//var url = 'http://www.budejie.com/';var url="http://www.budejie.com/text/...
2018-04-27 14:24:54 726
原创 node常用的命令
所有可能用到的命令所有详细命令 查看https://www.cnblogs.com/itlkNote/p/6830682.html查询 npm list 查询本地安装的所有模块 (带其依赖项) npm list --depth=0安装的所有模块(仅模块) npm info "包名" 查询某个模块的远程库的信息(所有) ...
2018-04-27 14:23:27 2668 1
原创 git配置及常用到的命令
下载 安装githttps://git-scm.com/downloads初步配置$ git config --global user.name 'github用户名' $ git config --global user.email '邮箱' 查看设置git config --list 设置秘钥cd ~/.ssh 查看有没有ssh-keygen -t rsa -C "邮箱"git命令大全 ...
2018-04-27 14:21:13 148
原创 常用到的链接
压缩图片https://tinypng.com/es6转es5http://babeljs.io/repl/翻译http://fanyi.baidu.com/#auto/zh/json格式解析https://www.json.cn/js代码格式化http://tool.oschina.net/codeformat/js百度静态资源库http://cdn.code.baidu.com/动态 代码生成...
2018-04-27 14:19:31 891
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人