看来 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
#!/bin/bash | |
#When the free memory very less ,this script to collect CPU/memory usage information and dmessage information. | |
#Version 1.0 time:2014-3-11 | |
#Version 2.0 time:2014-12-23 | |
logfile=/tmp/$0.log | |
check_os_release() | |
{ | |
while true |
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
download(name, data) { | |
const urlObject = window.URL || window.webkitURL || window; | |
const exportBlob = new Blob([data]); | |
const MIME_TYPE = 'text/plain' | |
const a = document.createElement('a'); | |
a.download = name; | |
a.href = window.URL.createObjectURL(exportBlob); | |
a.textContent = 'Download ready'; | |
a.dataset.downloadurl = [MIME_TYPE, a.download, a.href].join(':'); | |
a.click(); |
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
class Verify { | |
constructor(options = {}) { | |
this.defaultConfig = { | |
id: '', | |
canvasId: 'verifyCanvas', | |
width: '100', | |
height: '30', | |
// 默认 blend - 数字字母混合类型, number - 纯数字, letter 纯字母 | |
type: 'blend', | |
code: '' |
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
const path = require('path') | |
const webpack = require('webpack') | |
const HtmlWebpackPlugin = require('html-webpack-plugin') | |
const ExtractTextPlugin = require('extract-text-webpack-plugin') | |
const TARGET = process.env.npm_lifecycle_event; | |
const buildImagePath = TARGET === 'build' ? '../../images/sabi/[name].[ext]' : 'images/[name].[ext]' | |
const config = { |
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
.circle_process{ | |
position: relative; | |
width: 199px; | |
height : 200px; | |
} | |
.circle_process .wrapper{ | |
width: 100px; | |
height: 200px; | |
position: absolute; | |
top:0; |
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
/*<button></button>*/ | |
button { | |
width: 59px; | |
height: 59px; | |
border: 1px solid #eee; | |
border-radius: 100%; | |
background-color: #fff; | |
cursor: pointer; | |
} |
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
.bg-bubbles { | |
position: absolute; | |
// 使气泡背景充满整个屏幕; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
// 如果元素内容超出给定的宽度和高度,overflow 属性可以确定是否显示滚动条等行为; | |
overflow: hidden; | |
li { |
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
<div class="pulsating-beacon"> | |
<div class="beacon-static"></div> | |
<div class="beacon-pulse"></div> | |
</div> | |
<style> | |
.pulsating-beacon { | |
display: inline-block; | |
width: 40px; | |
height: 40px; |
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
"------------------------------------------------------------------------ | |
" general | |
"------------------------------------------------------------------------ | |
set history=50 " 历史记录条数 | |
"set number " 显示行号 | |
set confirm " 在处理未保存或只读文件时,弹出确认提示 | |
"------------------------------------------------------------------------ | |
" colors | |
"------------------------------------------------------------------------ |
NewerOlder