├── .DS_Store ├── .gitconfig ├── .zshrc ├── 09308211.bmp ├── HTML5笔记.docx ├── JS当中事件轮训机制.gif ├── docs ├── AngularJS笔记.md ├── ES5.md ├── ES6规范.md ├── HTML5读书笔记.md ├── IE6下fixed失效.md ├── JS基础深入理解.md ├── JS当中事件轮训机制.md ├── PM2服务器部署.md ├── README.md ├── compile │ ├── codegen.md │ ├── entrance.md │ ├── index.md │ ├── optimize.md │ └── parse.md ├── components │ ├── async-component.md │ ├── component-register.md │ ├── create-component.md │ ├── index.md │ ├── lifecycle.md │ ├── merge-option.md │ └── patch.md ├── cyarn使用手册.md ├── data-driven │ ├── create-element.md │ ├── index.md │ ├── mounted.md │ ├── new-vue.md │ ├── render.md │ ├── update.md │ └── virtual-dom.md ├── extend │ ├── event.md │ ├── index.md │ ├── keep-alive.md │ ├── slot.md │ ├── tansition-group.md │ ├── tansition.md │ └── v-model.md ├── git使用手册.md ├── grunt快速入门.md ├── gulp快速入门.md ├── htmlDom操作.txt ├── javascript.txt ├── javascript数据类型与运算符.txt ├── jquery常用方法.txt ├── js高级.md ├── module模块儿化编程.md ├── mongoDb命令.txt ├── mongoose 课件.txt ├── prepare │ ├── build.md │ ├── directory.md │ ├── entrance.md │ ├── flow.md │ └── index.md ├── reactive │ ├── component-update.md │ ├── computed-watcher.md │ ├── getters.md │ ├── index.md │ ├── next-tick.md │ ├── questions.md │ ├── reactive-object.md │ ├── setters.md │ └── summary.md ├── rsyncd.md ├── vscode_key_map.txt ├── vue-router │ ├── index.md │ ├── install.md │ ├── matcher.md │ ├── router.md │ └── transition-to.md ├── vue.txt ├── vuex.txt ├── vuex │ ├── api.md │ ├── index.md │ ├── init.md │ └── plugin.md ├── w3c规范基础知识-1.md ├── w3c规范基础知识.md ├── 作用域与对象.txt ├── 正则表达式2.md ├── 浏览器兼容性.md ├── 淘宝样式初始化代码.txt ├── 深入理解npm脚本script.md ├── 深入理解闭包代码.md ├── 百度地图使用.md ├── 移动端.md ├── 解决浏览器兼容性.txt └── 设备像素.md ├── greenWall.jpg ├── hosts ├── nginx.conf ├── nt9.zsh-theme ├── openssl-生成自签名https证书.docx ├── rsyncd.conf ├── settings.jar ├── test.js ├── test2.js ├── webstorm激活地址 ├── 日期和文件上传.js └── 移动端 └── 2_三个视口.md /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrIrick/noteJS/49535042eb23d2d892eb355cd209fbbd925416b4/.DS_Store -------------------------------------------------------------------------------- /.gitconfig: -------------------------------------------------------------------------------- 1 | [user] 2 | name = chihaiping 3 | email = chihaiping@meituan.com 4 | [color] 5 | ui = auto 6 | branch = auto 7 | diff = auto 8 | status = auto 9 | [color "branch"] 10 | current = green 11 | local = yellow 12 | remote = red 13 | [color "diff"] 14 | meta = yellow bold 15 | frag = magenta bold 16 | old = red bold 17 | new = green bold 18 | [color "status"] 19 | added = yellow 20 | changed = green 21 | untracked = cyan 22 | [alias] 23 | di = diff 24 | ci = commit 25 | co = checkout 26 | br = branch 27 | gst = git status 28 | unstage = reset HEAD 29 | lst =log -1 30 | lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit 31 | gba = git branch -a 32 | gbl = git blame -b -w 33 | cmt = commit 34 | cout = git checkout 35 | dif = git diff 36 | diffca = git diff --cached 37 | fh = git fetch 38 | ad = git add 39 | st = status 40 | last = log -1 41 | [core] 42 | editor = vim 43 | excludesfile = /Users/chihp/.gitignore_global 44 | [i18n] 45 | commitencoding = iso-8859 46 | logoutputencoding = iso-8859 47 | [difftool "sourcetree"] 48 | cmd = opendiff \"$LOCAL\" \"$REMOTE\" 49 | path = 50 | [mergetool "sourcetree"] 51 | cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" 52 | trustExitCode = true 53 | [commit] 54 | template = /Users/chihp/.stCommitMsg 55 | -------------------------------------------------------------------------------- /.zshrc: -------------------------------------------------------------------------------- 1 | # If you come from bash you might have to change your $PATH. 2 | # export PATH=$HOME/bin:/usr/local/bin:$PATH 3 | 4 | # Path to your oh-my-zsh installation. 5 | export ZSH=/Users/chihp/.oh-my-zsh 6 | 7 | export TTC_BOTS='tinycarebot,selfcare_bot,magicrealismbot' 8 | export TTC_REPOS='~/WebstormProjects/banma_page' 9 | export TTC_WEATHER='Beijing' 10 | export TTC_CELSIUS=true 11 | export TTC_APIKEYS=false 12 | export TTC_UPDATE_INTERVAL=20 13 | 14 | # Set name of the theme to load. Optionally, if you set this to "random" 15 | # it'll load a random theme each time that oh-my-zsh is loaded. 16 | # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes 17 | ZSH_THEME="nt9" 18 | PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p%{$fg[cyan]%}%d %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}>' 19 | 20 | # Uncomment the following line to use case-sensitive completion. 21 | # CASE_SENSITIVE="true" 22 | 23 | # Uncomment the following line to use hyphen-insensitive completion. Case 24 | # sensitive completion must be off. _ and - will be interchangeable. 25 | # HYPHEN_INSENSITIVE="true" 26 | 27 | # Uncomment the following line to disable bi-weekly auto-update checks. 28 | # DISABLE_AUTO_UPDATE="true" 29 | 30 | # Uncomment the following line to change how often to auto-update (in days). 31 | # export UPDATE_ZSH_DAYS=13 32 | 33 | # Uncomment the following line to disable colors in ls. 34 | # DISABLE_LS_COLORS="true" 35 | 36 | # Uncomment the following line to disable auto-setting terminal title. 37 | # DISABLE_AUTO_TITLE="true" 38 | 39 | # Uncomment the following line to enable command auto-correction. 40 | # ENABLE_CORRECTION="true" 41 | 42 | # Uncomment the following line to display red dots whilst waiting for completion. 43 | # COMPLETION_WAITING_DOTS="true" 44 | 45 | # Uncomment the following line if you want to disable marking untracked files 46 | # under VCS as dirty. This makes repository status check for large repositories 47 | # much, much faster. 48 | # DISABLE_UNTRACKED_FILES_DIRTY="true" 49 | 50 | # Uncomment the following line if you want to change the command execution time 51 | # stamp shown in the history command output. 52 | # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" 53 | # HIST_STAMPS="mm/dd/yyyy" 54 | 55 | # Would you like to use another custom folder than $ZSH/custom? 56 | # ZSH_CUSTOM=/path/to/new-custom-folder 57 | 58 | # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) 59 | # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ 60 | # Example format: plugins=(rails git textmate ruby lighthouse) 61 | # Add wisely, as too many plugins slow down shell startup. 62 | plugins=(git autojump osx) 63 | #compile bash when loaded 64 | source ./.bash_profile 65 | source $ZSH/oh-my-zsh.sh 66 | 67 | # User configuration 68 | 69 | # export MANPATH="/usr/local/man:$MANPATH" 70 | 71 | # You may need to manually set your language environment 72 | # export LANG=en_US.UTF-8 73 | 74 | # Preferred editor for local and remote sessions 75 | # if [[ -n $SSH_CONNECTION ]]; then 76 | # export EDITOR='vim' 77 | # else 78 | # export EDITOR='mvim' 79 | # fi 80 | 81 | # Compilation flags 82 | # export ARCHFLAGS="-arch x86_64" 83 | 84 | # ssh 85 | # export SSH_KEY_PATH="~/.ssh/rsa_id" 86 | 87 | # Set personal aliases, overriding those provided by oh-my-zsh libs, 88 | # plugins, and themes. Aliases can be placed here, though oh-my-zsh 89 | # users are encouraged to define aliases within the ZSH_CUSTOM folder. 90 | # For a full list of active aliases, run `alias`. 91 | # 92 | # Example aliases 93 | # alias zshconfig="mate ~/.zshrc" 94 | # alias ohmyzsh="mate ~/.oh-my-zsh" 95 | 96 | export NVM_DIR="/Users/chihp/.nvm" 97 | [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm 98 | 99 | 100 | alias mnpm="npm --registry=http://r.npm.sankuai.com \ 101 | --cache=$HOME/.cache/mnpm \ 102 | --disturl=http://npm.sankuai.com/dist/node \ 103 | --userconfig=$HOME/.mnpmrc" 104 | 105 | [[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.sh 106 | 107 | 108 | 109 | #new paths added by me 110 | 111 | alias sub='open -a "Sublime Text3"' 112 | alias mkd='open -a "MWeb Lite"' 113 | alias lsl='ls -l' 114 | alias lsla='ls -l -a' 115 | alias mongodb='mongod dbpath /Users/chihp/DBStorage/data' 116 | alias mongod='mongod --dbpath /Users/chihp/DBStorage/data --logpath /Users/chihp/DBStorage/log/mongo.log' 117 | 118 | function powerline_precmd() { 119 | export PS1="$(~/powerline-shell.py $? --shell zsh 2> /dev/null)" 120 | } 121 | 122 | function install_powerline_precmd() { 123 | for s in "${precmd_functions[@]}"; do 124 | if [ "$s" = "powerline_precmd" ]; then 125 | return 126 | fi 127 | done 128 | precmd_functions+=(powerline_precmd) 129 | } 130 | 131 | -------------------------------------------------------------------------------- /09308211.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrIrick/noteJS/49535042eb23d2d892eb355cd209fbbd925416b4/09308211.bmp -------------------------------------------------------------------------------- /HTML5笔记.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrIrick/noteJS/49535042eb23d2d892eb355cd209fbbd925416b4/HTML5笔记.docx -------------------------------------------------------------------------------- /JS当中事件轮训机制.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrIrick/noteJS/49535042eb23d2d892eb355cd209fbbd925416b4/JS当中事件轮训机制.gif -------------------------------------------------------------------------------- /docs/AngularJS笔记.md: -------------------------------------------------------------------------------- 1 | ## AngularJS笔记 2 | AngularJS 应用组成如下: 3 | View(视图), 即 HTML。 4 | Model(模型), 当前视图中可用的数据。 5 | Controller(控制器), 即 JavaScript 函数,可以添加或修改属性。 6 | scope 是模型。 7 | scope 是一个 JavaScript 对象,带有属性和方法,这些属性和方法可以在视图和控制器中使用。 8 | 指令和表达式都可以访问域模型对象中的属性和方法, 例:ng-model="name", {{name}} 9 | 控制器通过影响模型中数据,来实时修改页面中的数据,模型和视图中的数据存在双向绑定关系 10 | 11 | ### ng-app指令 12 | 这个指令用来表示angulajs根域模型对象的作用范围,当页面构建完毕,该指令会调用对应的模型构造函数来生成根对象 13 | 接收来自angularjs作用范围的页面数据,单向数据流 14 | 15 | * ng-model指令 16 | ``` 17 | ng-model 指令用于绑定应用程序数据到 HTML 控制器(input, select, textarea)的值。 18 | ``` 19 | - ng-model 指令可以将输入域的值与 AngularJS 创建的变量绑定。 20 | - 双向绑定,在修改输入域的值时, AngularJS 属性的值也将修改 21 | - ng-model 指令可以为应用数据提供状态值(invalid, dirty, touched, error): 22 | - ng-model 指令基于它们的状态为 HTML 元素提供了 CSS 类 23 | * ng-model 指令根据表单域的状态添加/移除以下类: 24 | * ng-empty 25 | * ng-not-empty 26 | * ng-touched 27 | * ng-untouched 28 | * ng-valid 29 | * ng-invalid 30 | * ng-dirty 31 | * ng-pending 32 | * ng-pristine 33 | * ng-show 34 | `用来验证用户输入,提示信息会在ng-show属性返回true的情况下显示` 35 |
hello world
13 | 14 | 15 | 16 | Go to Foo 17 | Go to Bar 18 |
表示引用 8 | 9 | 表示细则 10 | 11 | 上标和下标 12 | 13 | 删除线和下划线 14 | 15 | 预格式 16 | 17 | 无序列表 18 | 定义列表 19 | 语义化标签 20 | 21 | 页眉 22 |
预格式 16 | 17 | 无序列表 18 | 定义列表 19 | 语义化标签 20 | 21 | 页眉 22 |