Skip to content

Instantly share code, notes, and snippets.

View llccing's full-sized avatar
🎯
Focusing

Rowan Liu llccing

🎯
Focusing
View GitHub Profile
@llccing
llccing / 《Vue.js 实战》 .md
Last active November 18, 2017 22:57
读后感

几个有用的点

组件通信

异步组件

slot 内容分发

demo

计数器

tabs 页签

  • 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",
  • 为什么要jQuery 到 Vue

  • 为什么要MVVM

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

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

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

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

VS code 使用优化

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

生成一个项目 iview-cli

选择需要的配置

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

安装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 / JS.md
Last active January 27, 2021 06:11

常用正则表达式

逗号分隔的邮箱验证

const multiEmailRegex = /^((([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6}\,))*(([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})))$/;
const validateMultiEmails = (rule, value, callback) => {
  if (!value) {
    return callback(new Error('邮箱必填!'));
  } else if (!multiEmailRegex.test(value)) {
 return callback(new Error('格式不正确,若多个以逗号分隔'));
@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>