Skip to content

Instantly share code, notes, and snippets.

View llccing's full-sized avatar
🎯
Focusing

Rowan Liu llccing

🎯
Focusing
View GitHub Profile
  • 为什么要jQuery 到 Vue

  • 为什么要MVVM

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

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

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

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

VS code 使用优化

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

生成一个项目 iview-cli

选择需要的配置

  • 项目名字
  • axios (ajax,基本都需要)

安装docker

前端开发环境梳理

一个有意思的方式,有待尝试。前端+docker

@llccing
llccing / readme.md
Created December 13, 2017 13:06 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

idcui项目说明

技术栈: Vue + iview

目录结构介绍

|-- build                            	// webpack配置文件
|-- config                           	// 项目打包路径

|-- dist // 打包输出目录

@llccing
llccing / axios.interceptors.response.js
Last active April 16, 2019 02:25
针对axios的错误处理,结合vuex
import axios from 'axios';
import Vue from 'vue';
import store from '@/store';
// import { Message } from 'iview';
// 请求时拦截
axios.interceptors.request.use(config => config, error => Promise.reject(error));
// 请求完成后拦截
axios.interceptors.response.use(
response => response,
(error) => {
{{form.idc_name}}
  <DescriptionList title="运营商" class="mb20">
    <Description :col="2">
      <FormItem label="运营商:">{{supportName}}</FormItem>
    </Description>
export { default as NavBar } from './NavBar';
export { default as SideBar } from './SideBar';
export { default as AppMain } from './AppMain';