看来 jQuery 你已经用得很爽了,想学习如何自己编写插件。非常好,这篇文档正适合你。用插件和方法来扩展 jQuery 非常强大,把最聪明的功能封装到插件中可以为你及团队节省大量开发时间。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var BASE64_MARKER = ';base64,'; | |
function convertDataURIToBinary(dataURI) { | |
var base64Index = dataURI.indexOf(BASE64_MARKER) + BASE64_MARKER.length; | |
var base64 = dataURI.substring(base64Index); | |
var raw = window.atob(base64); | |
var rawLength = raw.length; | |
var array = new Uint8Array(new ArrayBuffer(rawLength)); | |
for(i = 0; i < rawLength; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 重置样式 [[*/ | |
body,p,ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,form,fieldset,legend,input,select,textarea,button,th,td,menu,article{margin:0;padding:0;} | |
article,aside,dialog,figure,footer,header,hgroup,nav,section,select{display:block;} | |
h1,h2,h3,h4,h5,h6,input,textarea,select,button,label{font-size:100%;font-weight:100;vertical-align:middle;} | |
ul,dl,ol{list-style:none;} | |
img,fieldset,input[type="submit"]{border:none;} | |
input{outline:none;background:transparent;vertical-align:top;} | |
table{border-collapse:collapse;border-spacing:0;} | |
button{cursor:pointer;border:none;} | |
textarea{word-wrap:break-word;resize:none;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"keys": ["tab"], | |
"command": "expand_abbreviation_by_tab", | |
// put comma-separated syntax selectors for which | |
// you want to expandEmmet abbreviations into "operand" key | |
// instead of SCOPE_SELECTOR. | |
// Examples: source.js, text.html - source | |
"context": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ------------------------------ | |
" Name: vimrc for windows | |
" Author: keelii | |
" Email: keeliizhou@gmail.com | |
" ------------------------------ | |
" Startup {{{ | |
filetype indent plugin on | |
augroup vimrcEx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Felix Yan <felixonmars@archlinux.org> | |
# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> | |
# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com> | |
# Contributor: Mucahit Senol <mucahitsenol86 at gmail dot com> | |
pkgname=deepin-screenshot | |
pkgver=5.0.0 | |
pkgrel=1 | |
pkgdesc="Easy-to-use screenshot tool for linuxdeepin desktop environment" | |
arch=('x86_64') |