摘要:
var a=document.querySelector('input[type=file]');a.onchange = function (e) {//var reader = new FileReader();//reader.readAsDataURL(a.files[0]);//reade... 阅读全文
摘要:
asdasdasdasdaasdasdasdasda 阅读全文
摘要:
默认顺序 1 2 3 物品容器 2仓库 阅读全文
摘要:
Bouncing Ball With inputs 不支持canvas Horizontal velocity Vert... 阅读全文
摘要:
var blob = new Blob(['onmessage=function(e){postMessage(e.data);}']); debugger; // Obtain a blob URL reference to our worker 'file'. var blobURL = window.URL.createObjectURL(blob); // create a Worker var worker = new Worker(blobURL); worker.onmessage = function (e) { conso... 阅读全文
摘要:
下面是IndexedDb.js/** * Created by 宇乔 on 13-11-12. */(function (window) { var A = { create: function (dbname, dbInfo, successFn, errorFn, version) { var me = this; this.dbName = dbname; this.version = version; for (var i = 0, len = dbInf... 阅读全文
摘要:
//Create child processvar thread = require('child_process');var msg = thread.fork(__dirname + '/child.js',['asdasd']);msg.on('message', function (m) { debugger; console.log('PARENT got message:', m);});msg.on('close', function () { //3 debugger;})msg.o 阅读全文
摘要:
var msViewportStyle = document.createElement("style"); msViewportStyle.appendChild( document.createTextNode( "@media screen and (orientation: portrait) {" + "@-ms-viewport {width: 320px !important;}" + "}" + "@media sc... 阅读全文