Skip to content

Instantly share code, notes, and snippets.

View llccing's full-sized avatar
🎯
Focusing

Rowan Liu llccing

🎯
Focusing
View GitHub Profile

安装docker

VS code 使用优化

感觉代码没有正经写多久,大部分的时间都在了折腾编辑器的路上马不停蹄。哈哈,特步,永不止步。

生成一个项目 iview-cli

选择需要的配置

  • 项目名字
  • axios (ajax,基本都需要)
  • 为什么要jQuery 到 Vue

  • 为什么要MVVM

  • python 模板引擎实现数据渲染

  • jQuery 的组件,一样可以重用。

  • css不大,不需要合并压缩

  • 不需要调试接口,不需要代理环境。

  • package.json
{
  "name": "koa2",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "start": "node bin/www",
    "dev": "./node_modules/.bin/nodemon bin/www",
 "prd": "pm2 start bin/www",
@llccing
llccing / 《Vue.js 实战》 .md
Last active November 18, 2017 22:57
读后感

几个有用的点

组件通信

异步组件

slot 内容分发

demo

计数器

tabs 页签

解决

首先确定目录是否一致。

目录一致时,将一下代码存成xxx.reg格式的文件,双击执行即可。

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in Git]
@="Git Bash Here"
// 安装 npm-check
cnpm i -g npm-check

// 检查版本,项目下的依赖
npm-check -u 

// 检查版本,全局依赖
npm-check -u -g

通过CDN引入, avalon.js

几个demo

  • table demo
  • form表单
  • 分页demo
  • select

创建项目 (前提vue-cli, cnpm)

  • 通过vue-cli生成项目
    • vue-router 路由
    • vuex 全局状态管理
  • 安装axios,进行ajax请求
  • 引入iview,UI组件
  • 可选Echarts,图表
    • node版
  • js库,官方最新版。