pushState
里的title并没有什么卵用
(function (doc, win) {
function Router () {
this.state = {};
this.events = [];
}
//添加popstate事件
win.addEventListener('popstate', function (e) {
pushState
里的title并没有什么卵用
(function (doc, win) {
function Router () {
this.state = {};
this.events = [];
}
//添加popstate事件
win.addEventListener('popstate', function (e) {
/usr/local/etc/nginx/
xiadd
{
'name': '21',
'age': 12321213
}
export defaule {
//app.js | |
App({ | |
onLaunch: function () { | |
//获取当前位置,配合地图sdk使用 | |
wx.getLocation({ | |
type: 'wgs84', // 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于 wx.openLocation 的坐标 | |
success: function(res){ | |
wx.request({ | |
url: 'https://dev.xiadd.me/api/user/location', | |
data: res, |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');
Those suck for maintenance and they're ugly.
/** | |
* 请预先安装axios,signale,async | |
* 并发请自行修改 | |
*/ | |
const axios = require('axios') | |
const signale = require('signale') | |
const url = require('url') | |
const fs = require('fs') | |
const mapLimit = require('async/mapLimit') |
111 |
👩👩👧hello