One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
var gulp =require('gulp'), | |
useref = require('gulp-useref'), | |
uglify = require('gulp-uglify'), | |
cleancss = require('gulp-clean-css'), | |
rev = require('gulp-rev'), | |
revReplace = require('gulp-rev-replace'), | |
gulpif = require('gulp-if'); | |
gulp.task('pack', function () { | |
return gulp.src('./src/**/*.html') |
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.
// 尝试连接indexedDB,得到一个‘响应’ | |
let request; | |
request = indexedDB.open('testing', 1.0); | |
request.onerror = function (event) { | |
alert('Something bad happened while trying to open: ' + event.target.errorCode); | |
}; | |
request.onsuccess = function () { |
const indexedDBModule = function(dbName, version, objectStorage) { | |
window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; | |
const dbOpenRequest = window.indexedDB.open(dbName, version); | |
// 模块中的局部变量,用于存储连接成功的数据库连接 | |
let db; | |
dbOpenRequest.onerror = function (event) { | |
console.log('Something bad happened while trying to open: ' + event.target.errorCode); |
{ | |
data() { | |
return { | |
} | |
}, | |
methods: { | |
}, | |
compontents: { |
/** | |
* @module indexedDBModule 使用indexedDB管理数据 | |
* | |
* @param {String} dbName 数据库名称 | |
* @param {Number} version 数据库版本 | |
* @param {String} objectStorage 对象存储空间(相当于table name) | |
* @param {Function} afterDataBaseConnected 需要在数据库初始化完成后执行的函数,一般为应用的初始化函数 | |
* | |
* @return {Object} {init, getAll, get, create, update, delete, removeAll} | |
* |
let count = 0; | |
function get() { | |
return count; | |
} | |
function add() { | |
count += 1; | |
} |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |