start new:
tmux
start new with session name:
tmux new -s myname
| { | |
| loadItemOptions: function() { | |
| var url = 'http://' + hostname + ':21275/data/repair_category/all'; | |
| var _this = this; | |
| fetch(url, { | |
| method: 'POST' | |
| }) | |
| .then(function(res) { | |
| return res.json(); | |
| }) |
| define(['./user-info', './is-weixin'], function (userInfo, isWeichat) { | |
| function goToAuth() { | |
| window.location.href = './login.html?redirect=' + getRedirect(); | |
| } | |
| function getRedirect() { | |
| var pattern = /https?:\/\/.+\/(\w+\.html)/; | |
| var redirectUri = pattern.exec(location.href)[1]; | |
| // 某些页面需要从上一个页面进入,否则会加载不到缓存中的数据。-- 设计失败。 |
| define(function () { | |
| function init() { | |
| var html = `<div class="u-mask" style="background-color: rgba(0, 0, 0, 0.8);"> | |
| <div class="u-spinner"> | |
| <i class="u-icon-loading"></i> | |
| <p class="u-loading-text">正在拼命发起请求</p> | |
| </div> | |
| </div>` | |
| $('body').append(html); |
| {"lastUpload":"2018-04-24T12:44:34.532Z","extensionVersion":"v2.9.0"} |
| import { Message } from 'element-ui' | |
| function noop {} | |
| export default function report (data, type='', callback=noop) { | |
| let map = { | |
| create: '新增', | |
| update: '修改', | |
| destroy: '删除' | |
| } |
| <template> | |
| <div> | |
| <el-button type="primary" size="mini" @click="handleClick0">添加同级</el-button> | |
| <el-button type="primary" size="mini" @click="handleClick1">添加下级</el-button> | |
| <el-button type="warning" size="mini" @click="handleClick2">修改</el-button> | |
| <el-button type="danger" size="mini" @click="handleClick3">删除</el-button> | |
| <el-tree | |
| ref="tree" | |
| :data="data" |
| require('dotenv').config({ path: './.env' }) | |
| var express = require('express'); | |
| var router = express.Router(); | |
| const mysql = require('mysql2/promise'); | |
| const co = require('co'); | |
| const chalk = require('chalk'); | |
| /* GET users listing. */ | |
| router.get('/:database/tables', function (req, res, next) { | |
| process.env.DB_DATABASE = req.params.database; |
| import { Simple } from 'vue-element-crud' | |
| import Pagination from './Pagination' | |
| export default { | |
| mixins: [Simple, Pagination], | |
| data() { | |
| return { | |
| api: {}, | |
| loading: false |
cmder will be refered as console
homestead utf8_general_ci