👩👩👧hello
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 {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 请预先安装axios,signale,async | |
* 并发请自行修改 | |
*/ | |
const axios = require('axios') | |
const signale = require('signale') | |
const url = require('url') | |
const fs = require('fs') | |
const mapLimit = require('async/mapLimit') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 |