`
JavaSam
  • 浏览: 934413 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

html5 规范中新增的api

阅读更多
如果你是 javascript高手,请来这里吧,扣扣群 170798851,我们一起进步。
/**
@type {number}
@const
*/
Blob.prototype.size = 0;
/**
@type {string}
@const
*/
Blob.prototype.type = null;
/**
@param {number} [start]
@param {number} [end]
@param {string} [contentType]
@return {Blob}
*/
Blob.prototype.slice = function(start,end,contentType) {};
Blob = {};

/**
@type {number}
@const
*/
FileList.prototype.length = 0;
/**
@param {number} [item]
@return {File}
*/
FileList.prototype.item = function(item) {};
FileList = {};

/**
@type {FileList}
@const
*/
HTMLInputElement.prototype.files = 0;
HTMLInputElement = {};

/**
@type {string}
@const
*/
File.prototype.name = null;
/**
@type {Date}
@const
*/
File.prototype.lastModifiedDate = 0;
File.prototype = new Blob();
File = {};

/**
@static
@type {number}
@const
*/
FileReader.EMPTY = 0;
/**
@static
@type {number}
@const
*/
FileReader.LOADING = 1;
/**
@static
@type {number}
@const
*/
FileReader.DONE = 2;
/**
@type {number}
@const
*/
FileReader.prototype.readyState = 0;
/**
@type {Object}
@const
*/
FileReader.prototype.result = 0;
/**
@type {Error}
@const
*/
FileReader.prototype.error = 0;
/**
@type {Function}
*/
Object.defineProperty(FileReader, "onloadstart", { set: function(value) {} });
/**
@type {Function}
*/
Object.defineProperty(FileReader, "onprogress", { set: function(value) {} });
/**
@type {Function}
*/
Object.defineProperty(FileReader, "onload", { set: function(value) {} });
/**
@type {Function}
*/
Object.defineProperty(FileReader, "onabort", { set: function(value) {} });
/**
@type {Function}
*/
Object.defineProperty(FileReader, "onerror", { set: function(value) {} });
/**
@type {Function}
*/
Object.defineProperty(FileReader, "onloadend", { set: function(value) {} });
/**
@param {Blob} blob
@return {void}
*/
FileReader.prototype.readAsArrayBuffer = function(blob) {};
/**
@param {Blob} blob
@return {void}
*/
FileReader.prototype.readAsBinaryString = function(blob) {};
/**
@param {Blob} blob
@param {string} [encoding]
@return {void}
*/
FileReader.prototype.readAsText = function(blob,encoding) {};
/**
@param {Blob} blob
@return {void}
*/
FileReader.prototype.readAsDataURL = function(blob) {};
/**
@return {void}
*/
FileReader.prototype.abort = function() {};
FileReader.prototype = new EventTarget();
FileReader = {};

/**
@type {DOMStringMap}
@const
*/
Node.prototype.dataset = 0;
/**
@type {DOMTokenList}
@const
*/
Node.prototype.classList = 0;
Node = {};

DOMStringMap = {};

/**
@type {Number}
@const
*/
DOMTokenList.prototype.length = 0;
/**
@param {string} className
@return {boolean}
*/
DOMTokenList.prototype.contains = function(className) {};
/**
@param {string} className
*/
DOMTokenList.prototype.add = function(className) {};
/**
@param {string} className
*/
DOMTokenList.prototype.remove = function(className) {};
/**
@param {string} className
*/
DOMTokenList.prototype.toggle = function(className) {};
DOMTokenList = {};

/**
@param {Database} database
@return {void}
*/
DatabaseCallback.prototype.handleEvent = function(database) {};
DatabaseCallback = {};

/**
@static
@const
*/
Notification.permission = 0;
/**
@param {Function} [callback]
@static
@return {void}
*/
Notification.requestPermission = function(callback) {};
/**
@type {Function}
*/
Notification.prototype.ondisplay = 0;
/**
@type {Function}
*/
Notification.prototype.onerror = 0;
/**
@type {Function}
*/
Notification.prototype.onclose = 0;
/**
@return {void}
*/
Notification.prototype.show = function() {};
/**
@return {void}
*/
Notification.prototype.cancel = function() {};
Notification.prototype = new EventTarget();
Notification = {};

HtmlElement = {};

/**
@static
@type {Number}
@const
*/
HTMLMediaElement.HAVE_NOTHING = 0;
/**
@static
@type {Number}
@const
*/
HTMLMediaElement.HAVE_METADATA = 1;
/**
@static
@type {Number}
@const
*/
HTMLMediaElement.HAVE_CURRENT_DATA = 2;
/**
@static
@type {Number}
@const
*/
HTMLMediaElement.HAVE_FUTURE_DATA = 3;
/**
@static
@type {Number}
@const
*/
HTMLMediaElement.HAVE_ENOUGH_DATA = 4;
/**
@static
@type {Number}
@const
*/
HTMLMediaElement.NETWORK_EMPTY = 0;
/**
@static
@type {Number}
@const
*/
HTMLMediaElement.NETWORK_IDLE = 1;
/**
@static
@type {Number}
@const
*/
HTMLMediaElement.NETWORK_LOADING = 2;
/**
@static
@type {Number}
@const
*/
HTMLMediaElement.NETWORK_NO_SOURCE = 3;
/**
@type {MediaError}
@const
*/
HTMLMediaElement.prototype.error = 0;
/**
@type {string}
*/
HTMLMediaElement.prototype.src = null;
/**
@type {string}
@const
*/
HTMLMediaElement.prototype.currentSrc = null;
/**
@type {Number}
@const
*/
HTMLMediaElement.prototype.networkState = 0;
/**
@type {string}
*/
HTMLMediaElement.prototype.preload = null;
/**
@type {TimeRanges}
@const
*/
HTMLMediaElement.prototype.buffered = 0;
/**
@type {Number}
@const
*/
HTMLMediaElement.prototype.readyState = 0;
/**
@type {boolean}
@const
*/
HTMLMediaElement.prototype.seeking = 0;
/**
@type {Number}
*/
HTMLMediaElement.prototype.currentTime = 0;
/**
@type {Number}
@const
*/
HTMLMediaElement.prototype.startTime = 0;
/**
@type {Number}
@const
*/
HTMLMediaElement.prototype.duration = 0;
/**
@type {boolean}
@const
*/
HTMLMediaElement.prototype.paused = 0;
/**
@type {Number}
*/
HTMLMediaElement.prototype.defaultPlaybackRate = 0;
/**
@type {Number}
*/
HTMLMediaElement.prototype.playbackRate = 0;
/**
@type {TimeRanges}
@const
*/
HTMLMediaElement.prototype.played = 0;
/**
@type {TimeRanges}
@const
*/
HTMLMediaElement.prototype.seekable = 0;
/**
@type {boolean}
@const
*/
HTMLMediaElement.prototype.ended = 0;
/**
@type {boolean}
*/
HTMLMediaElement.prototype.autoplay = 0;
/**
@type {boolean}
*/
HTMLMediaElement.prototype.loop = 0;
/**
@type {boolean}
*/
HTMLMediaElement.prototype.controls = 0;
/**
@type {Number}
*/
HTMLMediaElement.prototype.volume = 0;
/**
@type {boolean}
*/
HTMLMediaElement.prototype.muted = 0;
/**
@type {Array}
@const
*/
HTMLMediaElement.prototype.tracks = 0;
/**
@return {void}
*/
HTMLMediaElement.prototype.load = function() {};
/**
@param {string} type
@return {string}
*/
HTMLMediaElement.prototype.canPlayType = function(type) {};
/**
@return {void}
*/
HTMLMediaElement.prototype.play = function() {};
/**
@return {void}
*/
HTMLMediaElement.prototype.pause = function() {};
/**
@param {string} label
@param {string} kind
@param {string} language
@return {MutableTimedTrack}
*/
HTMLMediaElement.prototype.addTrack = function(label,kind,language) {};
HTMLMediaElement.prototype = new HTMLElement();
HTMLMediaElement = {};

/**
@static
@type {number}
@const
*/
MediaError.MEDIA_ERR_ABORTED = 1;
/**
@static
@type {number}
@const
*/
MediaError.MEDIA_ERR_NETWORK = 2;
/**
@static
@type {number}
@const
*/
MediaError.MEDIA_ERR_DECODE = 3;
/**
@static
@type {number}
@const
*/
MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
/**
@type {number}
@const
*/
MediaError.prototype.code = 0;
MediaError = {};

/**
@type {number}
@const
*/
TimeRanges.prototype.length = 0;
/**
@param {number} index
@return {number}
*/
TimeRanges.prototype.start = function(index) {};
/**
@param {number} index
@return {number}
*/
TimeRanges.prototype.end = function(index) {};
TimeRanges = {};

/**
@static
@type {number}
@const
*/
TimedTrack.NONE = 0;
/**
@static
@type {number}
@const
*/
TimedTrack.LOADING = 1;
/**
@static
@type {number}
@const
*/
TimedTrack.LOADED = 2;
/**
@static
@type {number}
@const
*/
TimedTrack.ERROR = 3;
/**
@static
@type {number}
@const
*/
TimedTrack.OFF = 0;
/**
@static
@type {number}
@const
*/
TimedTrack.HIDDEN = 1;
/**
@static
@type {number}
@const
*/
TimedTrack.SHOWING = 2;
/**
@type {string}
@const
*/
TimedTrack.prototype.kind = null;
/**
@type {string}
@const
*/
TimedTrack.prototype.label = null;
/**
@type {string}
@const
*/
TimedTrack.prototype.language = null;
/**
@type {number}
@const
*/
TimedTrack.prototype.readyState = 0;
/**
@type {Function}
@const
*/
TimedTrack.prototype.onload = 0;
/**
@type {Function}
@const
*/
TimedTrack.prototype.onerror = 0;
/**
@type {number}
*/
TimedTrack.prototype.mode = 0;
/**
@type {TimedTrackCueList}
@const
*/
TimedTrack.prototype.cues = 0;
/**
@type {TimedTrackCueList}
@const
*/
TimedTrack.prototype.activeCues = 0;
/**
@type {Function}
@const
*/
TimedTrack.prototype.onentercue = 0;
/**
@type {Function}
@const
*/
TimedTrack.prototype.onexitcue = 0;
TimedTrack = {};

/**
@param {TimedTrackCue} cue
@return {void}
*/
MutableTimedTrack.prototype.addCue = function(cue) {};
/**
@param {TimedTrackCue} cue
@return {void}
*/
MutableTimedTrack.prototype.removeCue = function(cue) {};
MutableTimedTrack.prototype = new TimedTrack();
MutableTimedTrack = {};

/**
@type {TimedTrack}
@const
*/
TimedTrackCue.prototype.track = 0;
/**
@type {string}
@const
*/
TimedTrackCue.prototype.id = null;
/**
@type {Number}
@const
*/
TimedTrackCue.prototype.startTime = 0;
/**
@type {Number}
@const
*/
TimedTrackCue.prototype.endTime = 0;
/**
@type {boolean}
@const
*/
TimedTrackCue.prototype.pauseOnExit = 0;
/**
@type {string}
@const
*/
TimedTrackCue.prototype.direction = null;
/**
@type {boolean}
@const
*/
TimedTrackCue.prototype.snapToLines = 0;
/**
@type {Number}
@const
*/
TimedTrackCue.prototype.linePosition = 0;
/**
@type {Number}
@const
*/
TimedTrackCue.prototype.textPosition = 0;
/**
@type {Number}
@const
*/
TimedTrackCue.prototype.size = 0;
/**
@type {string}
@const
*/
TimedTrackCue.prototype.alignment = null;
/**
@type {string}
@const
*/
TimedTrackCue.prototype.voice = null;
/**
@return {string}
*/
TimedTrackCue.prototype.getCueAsSource = function() {};
/**
@return {DocumentFragment}
*/
TimedTrackCue.prototype.getCueAsHTML = function() {};
/**
@param {string} id
@param {Number} startTime
@param {Number} endTime
@param {string} settings
@param {string} text
@param {boolean} [pauseOnExit]
@return {TimedTrackCue}
*/
TimedTrackCue.prototype.TimedTrackCue = function(id,startTime,endTime,settings,text,pauseOnExit) {};
TimedTrackCue = {};

/**
@type {Number}
@const
*/
TimedTrackCueList.prototype.length = 0;
/**
@param {string} id
@return {TimedTrackCue}
*/
TimedTrackCueList.prototype.getCueById = function(id) {};
TimedTrackCueList = {};

/**
@type {Number}
*/
HTMLVideoElement.prototype.width = 0;
/**
@type {Number}
*/
HTMLVideoElement.prototype.height = 0;
/**
@type {Number}
@const
*/
HTMLVideoElement.prototype.videoWidth = 0;
/**
@type {Number}
@const
*/
HTMLVideoElement.prototype.videoHeight = 0;
/**
@type {string}
*/
HTMLVideoElement.prototype.poster = null;
HTMLVideoElement.prototype = new HTMLMediaElement();
HTMLVideoElement = {};

/**
@type {string}
@const
*/
Database.prototype.version = null;
/**
@param {SQLTransactionCallback|SQLTransactionSyncCallback|Function} callback
@param {SQLTransactionErrorCallback|Function} [errorCallback]
@param {SQLVoidCallback|Function} [successCallback]
*/
Database.prototype.transaction = function(callback,errorCallback,successCallback) {};
/**
@param {SQLTransactionCallback|SQLTransactionSyncCallback|Function} callback
@param {SQLTransactionErrorCallback|Function} [errorCallback]
@param {SQLVoidCallback|Function} [successCallback]
*/
Database.prototype.readTransaction = function(callback,errorCallback,successCallback) {};
/**
@param {string} oldVersion
@param {string} newVersion
@param {SQLTransactionCallback|Function} [callback]
@param {SQLTransactionErrorCallback|Function} [errorCallback]
@param {SQLVoidCallback|Function} [successCallback]
*/
Database.prototype.changeVersion = function(oldVersion,newVersion,callback,errorCallback,successCallback) {};
Database = {};

/**
@return {void}
*/
SQLVoidCallback.prototype.handleEvent = function() {};
SQLVoidCallback = {};

/**
@param {SQLTransaction} [transaction]
@return {void}
*/
SQLTransactionCallback.prototype.handleEvent = function(transaction) {};
SQLTransactionCallback = {};

/**
@param {SQLError} [error]
@return {void}
*/
SQLTransactionErrorCallback.prototype.handleEvent = function(error) {};
SQLTransactionErrorCallback = {};

/**
@param {string} sqlStatement
@param {Object[]} [arguments]
@param {SQLStatementCallback} [callback]
@param {SQLStatementErrorCallback} [errorCallback]
@return {void}
*/
SQLTransaction.prototype.executeSql = function(sqlStatement,arguments,callback,errorCallback) {};
SQLTransaction = {};

/**
@param {SQLTransaction} [transaction]
@param {SQLResultSet} [resultSet]
@return {void}
*/
SQLStatementCallback.prototype.handleEvent = function(transaction,resultSet) {};
SQLStatementCallback = {};

/**
@param {SQLTransaction} [transaction]
@param {SQLError} [error]
@return {boolean}
*/
SQLStatementErrorCallback.prototype.handleEvent = function(transaction,error) {};
SQLStatementErrorCallback = {};

/**
@param {SQLTransactionSync} [transaction]
@return {void}
*/
SQLTransactionSyncCallback.prototype.handleEvent = function(transaction) {};
SQLTransactionSyncCallback = {};

/**
@param {string} sqlStatement
@param {Object[]} [arguments]
@return {SQLResultSet}
*/
SQLTransactionSync.prototype.executeSql = function(sqlStatement,arguments) {};
SQLTransactionSync = {};

/**
@type {Number}
@const
*/
SQLResultSet.prototype.insertId = 0;
/**
@type {Number}
@const
*/
SQLResultSet.prototype.rowsAffected = 0;
/**
@type {SQLResultSetRowList}
@const
*/
SQLResultSet.prototype.rows = 0;
SQLResultSet = {};

/**
@type {number}
@const
*/
SQLResultSetRowList.prototype.length = 0;
/**
@param {number} index
*/
SQLResultSetRowList.prototype.item = function(index) {};
SQLResultSetRowList = {};

/**
@static
@type {number}
@const
*/
SQLError.UNKNOWN_ERR = 0;
/**
@static
@type {number}
@const
*/
SQLError.DATABASE_ERR = 1;
/**
@static
@type {number}
@const
*/
SQLError.VERSION_ERR = 2;
/**
@static
@type {number}
@const
*/
SQLError.TOO_LARGE_ERR = 3;
/**
@static
@type {number}
@const
*/
SQLError.QUOTA_ERR = 4;
/**
@static
@type {number}
@const
*/
SQLError.SYNTAX_ERR = 5;
/**
@static
@type {number}
@const
*/
SQLError.CONSTRAINT_ERR = 6;
/**
@static
@type {number}
@const
*/
SQLError.TIMEOUT_ERR = 7;
/**
@type {number}
@const
*/
SQLError.prototype.code = 0;
/**
@type {string}
@const
*/
SQLError.prototype.message = null;
SQLError = {};

/**
@type {string}
@const
*/
MessageEvent.prototype.origin = null;
/**
@type {string}
@const
*/
MessageEvent.prototype.lastEventId = null;
/**
@type {Window}
@const
*/
MessageEvent.prototype.source = 0;
MessageEvent.prototype = new Event();
MessageEvent = {};

/**
@type {number}
@const
*/
History.prototype.length = 0;
/**
@type {Object}
@const
*/
History.prototype.state = 0;
/**
@param {Object} [data]
@param {string} [title]
@param {string} [url]
@return {void}
*/
History.prototype.pushState = function(data,title,url) {};
/**
@param {Object} [data]
@param {string} [title]
@param {string} [url]
@return {void}
*/
History.prototype.replaceState = function(data,title,url) {};
History = {};

/**
@param {string} [url]
@return {void}
*/
Location.prototype.assign = function(url) {};
/**
@param {string} [url]
@return {string}
*/
Location.prototype.resolveURL = function(url) {};
Location = {};

/**
@static
@type {number}
@const
*/
SQLException.UNKNOWN_ERR = 0;
/**
@static
@type {number}
@const
*/
SQLException.DATABASE_ERR = 1;
/**
@static
@type {number}
@const
*/
SQLException.VERSION_ERR = 2;
/**
@static
@type {number}
@const
*/
SQLException.TOO_LARGE_ERR = 3;
/**
@static
@type {number}
@const
*/
SQLException.QUOTA_ERR = 4;
/**
@static
@type {number}
@const
*/
SQLException.SYNTAX_ERR = 5;
/**
@static
@type {number}
@const
*/
SQLException.CONSTRAINT_ERR = 6;
/**
@static
@type {number}
@const
*/
SQLException.TIMEOUT_ERR = 7;
/**
@type {number}
@const
*/
SQLException.prototype.code = 0;
/**
@type {string}
@const
*/
SQLException.prototype.message = null;
SQLException.prototype = new Error();
SQLException = {};

/**
@type {string}
*/
HTMLImageElement.prototype.crossOrigin = null;
/**
@type {boolean}
@const
*/
HTMLImageElement.prototype.complete = 0;
/**
@type {number}
@const
*/
HTMLImageElement.prototype.naturalHeight = 0;
/**
@type {number}
@const
*/
HTMLImageElement.prototype.naturalWidth = 0;
HTMLImageElement.prototype = new HTMLElement();
HTMLImageElement = {};

/**
@type {number}
*/
HTMLCanvasElement.prototype.width = 0;
/**
@type {number}
*/
HTMLCanvasElement.prototype.height = 0;
/**
@param {string} contextId
@param {...*} [args]
@return {CanvasRenderingContext2D}
*/
HTMLCanvasElement.prototype.getContext = function(contextId,args) {};
/**
@param {string} [String]
@param {*} [args]
@return {string}
*/
HTMLCanvasElement.prototype.toDataURL = function(String,args) {};
HTMLCanvasElement.prototype = new HTMLElement();
HTMLCanvasElement = {};

/**
@param {SVGMatrix} [transform]
*/
CanvasPattern.prototype.setTransform = function(transform) {};
CanvasPattern = {};

SVGMatrix.prototype.inverse = function() {};
SVGMatrix = {};

/**
@type {HTMLCanvasElement}
@const
*/
CanvasRenderingContext2D.prototype.canvas = 0;
/**
@type {number}
*/
CanvasRenderingContext2D.prototype.globalAlpha = 0;
/**
@type {string}
*/
CanvasRenderingContext2D.prototype.globalCompositeOperation = null;
/**
@type {String|CanvasGradient|CanvasPattern}
*/
CanvasRenderingContext2D.prototype.fillStyle = 0;
/**
@type {String|CanvasGradient|CanvasPattern}
*/
CanvasRenderingContext2D.prototype.strokeStyle = 0;
/**
@type {Number}
*/
CanvasRenderingContext2D.prototype.lineWidth = 0;
/**
@type {string}
*/
CanvasRenderingContext2D.prototype.lineCap = null;
/**
@type {string}
*/
CanvasRenderingContext2D.prototype.lineJoin = null;
/**
@type {Number}
*/
CanvasRenderingContext2D.prototype.miterLimit = 0;
/**
@type {Number}
*/
CanvasRenderingContext2D.prototype.shadowOffsetX = 0;
/**
@type {Number}
*/
CanvasRenderingContext2D.prototype.shadowOffsetY = 0;
/**
@type {Number}
*/
CanvasRenderingContext2D.prototype.shadowBlur = 0;
/**
@type {string}
*/
CanvasRenderingContext2D.prototype.shadowColor = null;
/**
@type {string}
*/
CanvasRenderingContext2D.prototype.font = null;
/**
@type {string}
*/
CanvasRenderingContext2D.prototype.textAlign = null;
/**
@type {string}
*/
CanvasRenderingContext2D.prototype.textBaseline = null;
CanvasRenderingContext2D.prototype.save = function() {};
CanvasRenderingContext2D.prototype.restore = function() {};
/**
@param {number} x
@param {number} y
*/
CanvasRenderingContext2D.prototype.scale = function(x,y) {};
/**
@param {number} angle
*/
CanvasRenderingContext2D.prototype.rotate = function(angle) {};
/**
@param {number} x
@param {number} y
*/
CanvasRenderingContext2D.prototype.translate = function(x,y) {};
/**
@param {number} m11
@param {number} m12
@param {number} m21
@param {number} m22
@param {number} dx
@param {number} dy
*/
CanvasRenderingContext2D.prototype.transform = function(m11,m12,m21,m22,dx,dy) {};
/**
@param {number} m11
@param {number} m12
@param {number} m21
@param {number} m22
@param {number} dx
@param {number} dy
*/
CanvasRenderingContext2D.prototype.setTransform = function(m11,m12,m21,m22,dx,dy) {};
/**
@param {number} x0
@param {number} y0
@param {number} x1
@param {number} y1
@return {CanvasGradient}
*/
CanvasRenderingContext2D.prototype.createLinearGradient = function(x0,y0,x1,y1) {};
/**
@param {number} x0
@param {number} y0
@param {number} r0
@param {number} x1
@param {number} y1
@param {number} r1
@return {CanvasGradient}
*/
CanvasRenderingContext2D.prototype.createRadialGradient = function(x0,y0,r0,x1,y1,r1) {};
/**
@param {HTMLImageElement|HTMLCanvasElement|HTMLVideoElement} image
@param {string} repetition
@return {CanvasPattern}
*/
CanvasRenderingContext2D.prototype.createPattern = function(image,repetition) {};
/**
@param {Number} x
@param {Number} y
@param {Number} w
@param {Number} h
*/
CanvasRenderingContext2D.prototype.clearRect = function(x,y,w,h) {};
/**
@param {Number} x
@param {Number} y
@param {Number} w
@param {Number} h
*/
CanvasRenderingContext2D.prototype.fillRect = function(x,y,w,h) {};
/**
@param {Number} x
@param {Number} y
@param {Number} w
@param {Number} h
*/
CanvasRenderingContext2D.prototype.strokeRect = function(x,y,w,h) {};
CanvasRenderingContext2D.prototype.beginPath = function() {};
CanvasRenderingContext2D.prototype.closePath = function() {};
/**
@param {Number} x
@param {Number} y
*/
CanvasRenderingContext2D.prototype.moveTo = function(x,y) {};
/**
@param {Number} x
@param {Number} y
*/
CanvasRenderingContext2D.prototype.lineTo = function(x,y) {};
/**
@param {Number} cpx
@param {Number} cpy
@param {Number} x
@param {Number} y
*/
CanvasRenderingContext2D.prototype.quadraticCurveTo = function(cpx,cpy,x,y) {};
/**
@param {Number} cp1x
@param {Number} cp1y
@param {Number} cp2x
@param {Number} cp2y
@param {Number} x
@param {Number} y
*/
CanvasRenderingContext2D.prototype.bezierCurveTo = function(cp1x,cp1y,cp2x,cp2y,x,y) {};
/**
@param {Number} x1
@param {Number} y1
@param {Number} x2
@param {Number} y2
@param {Number} radius
*/
CanvasRenderingContext2D.prototype.arcTo = function(x1,y1,x2,y2,radius) {};
/**
@param {Number} x
@param {Number} y
@param {Number} w
@param {Number} h
*/
CanvasRenderingContext2D.prototype.rect = function(x,y,w,h) {};
/**
@param {Number} x
@param {Number} y
@param {Number} radius
@param {Number} startAngle
@param {Number} endAngle
@param {boolean} [anticlockwise]
*/
CanvasRenderingContext2D.prototype.arc = function(x,y,radius,startAngle,endAngle,anticlockwise) {};
CanvasRenderingContext2D.prototype.fill = function() {};
CanvasRenderingContext2D.prototype.stroke = function() {};
CanvasRenderingContext2D.prototype.clip = function() {};
/**
@param {Number} x
@param {Number} y
@return {boolean}
*/
CanvasRenderingContext2D.prototype.isPointInPath = function(x,y) {};
/**
@param {Element} element
@param {Number} xCaret
@param {Number} yCaret
@param {boolean} [canDrawCustom]
*/
CanvasRenderingContext2D.prototype.drawFocusRing = function(element,xCaret,yCaret,canDrawCustom) {};
/**
@param {string} text
@param {Number} x
@param {Number} y
@param {Number} [maxWidth]
*/
CanvasRenderingContext2D.prototype.fillText = function(text,x,y,maxWidth) {};
/**
@param {string} text
@param {Number} x
@param {Number} y
@param {Number} [maxWidth]
*/
CanvasRenderingContext2D.prototype.strokeText = function(text,x,y,maxWidth) {};
/**
@param {string} text
@return {TextMetrics}
*/
CanvasRenderingContext2D.prototype.measureText = function(text) {};
/**
@param {Element} img_elem
@param {Number} dx_or_sx
@param {Number} dy_or_sy
@param {Number} [dw_or_sw]
@param {Number} [dh_or_sh]
@param {Number} [dx]
@param {Number} [dy]
@param {Number} [dw]
@param {Number} [dh]
*/
CanvasRenderingContext2D.prototype.drawImage = function(img_elem,dx_or_sx,dy_or_sy,dw_or_sw,dh_or_sh,dx,dy,dw,dh) {};
/**
@param {ImageData|Number} imagedata_or_sw
@param {Number} [sh]
@return {ImageData}
*/
CanvasRenderingContext2D.prototype.createImageData = function(imagedata_or_sw,sh) {};
/**
@param {Number} sx
@param {Number} sy
@param {Number} sw
@param {Number} sh
@return {ImageData}
*/
CanvasRenderingContext2D.prototype.getImageData = function(sx,sy,sw,sh) {};
/**
@param {ImageData} image_data
@param {Number} dx
@param {Number} dy
@param {Number} [dirtyX]
@param {Number} [dirtyY]
@param {Number} [dirtyWidth]
@param {Number} [dirtyHeight]
*/
CanvasRenderingContext2D.prototype.putImageData = function(image_data,dx,dy,dirtyX,dirtyY,dirtyWidth,dirtyHeight) {};
CanvasRenderingContext2D = {};

/**
@param {Number} offset
@param {string} color
*/
CanvasGradient.prototype.addColorStop = function(offset,color) {};
CanvasGradient = {};

/**
@type {CanvasPixelArray}
@const
*/
ImageData.prototype.data = 0;
/**
@type {Number}
@const
*/
ImageData.prototype.width = 0;
/**
@type {Number}
@const
*/
ImageData.prototype.height = 0;
ImageData = {};

/**
@type {Number}
@const
*/
CanvasPixelArray.prototype.length = 0;
CanvasPixelArray = {};

/**
@type {Number}
@const
*/
TextMetrics.prototype.width = 0;
TextMetrics = {};

/**
@type {WorkerNavigator}
@const
*/
Window.prototype.navigator = 0;
/**
@type {Storage}
@const
*/
Window.prototype.localStorage = 0;
/**
@type {Storage}
@const
*/
Window.prototype.sessionStorage = 0;
/**
@param {Function} callback
@param {Element} element
@return {Number}
*/
Window.prototype.webkitRequestAnimationFrame = function(callback,element) {};
/**
@param {Function} callback
@return {void}
*/
Window.prototype.webkitCancelRequestAnimationFrame = function(callback) {};
/**
@param {Function} callback
@return {Number}
*/
Window.prototype.msRequestAnimationFrame = function(callback) {};
/**
@param {Function} callback
@return {void}
*/
Window.prototype.msCancelRequestAnimationFrame = function(callback) {};
/**
@param {Function} callback
@return {Number}
*/
Window.prototype.oRequestAnimationFrame = function(callback) {};
/**
@param {Function} callback
@return {void}
*/
Window.prototype.oCancelRequestAnimationFrame = function(callback) {};
/**
@param {Function} callback
@return {Number}
*/
Window.prototype.mozRequestAnimationFrame = function(callback) {};
/**
@param {Function} callback
@return {void}
*/
Window.prototype.mozCancelRequestAnimationFrame = function(callback) {};
/**
@param {function(number):void} callback
@return {Number}
*/
Window.prototype.requestAnimationFrame = function(callback) {};
/**
@param {number} handle
@return {void}
*/
Window.prototype.cancelRequestAnimationFrame = function(handle) {};
/**
@param {...string} [urls]
@return {void}
*/
Window.prototype.importScripts = function(urls) {};
/**
@param {string} name
@param {string} version
@param {string} displayName
@param {Number} estimatedSize
@param {DatabaseCallback|Function} [creationCallback]
@return {Database}
*/
Window.prototype.openDatabase = function(name,version,displayName,estimatedSize,creationCallback) {};
/**
@param {string} name
@param {string} version
@param {string} displayName
@param {Number} estimatedSize
@param {DatabaseCallback|Function} [creationCallback]
@return {Database}
*/
Window.prototype.openDatabaseSync = function(name,version,displayName,estimatedSize,creationCallback) {};
Window = {};

WorkerNavigator = {};

/**
@type {Function}
*/
AbstractWorker.prototype.onerror = 0;
AbstractWorker = {};

/**
 * @interface
 */
function Transferable() {}

/**
@type {function({data: Object})}
*/
Worker.prototype.onmessage = 0;
/**
@param {string} scriptURL
@constructor
*/
function Worker(scriptURL) {}
Worker.prototype.terminate = function() {};
/**
@param {*} message
@param {Transferable[]} [transferList]
*/
Worker.prototype.postMessage = function(message,transferList) {};
Worker.prototype = new AbstractWorker();

/**
@type {Function}
@const
*/
SharedWorker.prototype.port = 0;
SharedWorker.prototype = new AbstractWorker();
SharedWorker = {};

/**
 * @interface
 */
function Storage() {}
/**
@type {number}
@const
*/
Storage.prototype.length = 0;
/**
@param {number} index
@return {string}
*/
Storage.prototype.key = function(index) {};
/**
@param {string} key
*/
Storage.prototype.getItem = function(key) {};
/**
@param {string} key
@param {String|*} data
*/
Storage.prototype.setItem = function(key,data) {};
/**
@param {string} key
*/
Storage.prototype.removeItem = function(key) {};
Storage.prototype.clear = function() {};

/**
@static
@type {number}
@const
*/
WebSocket.CONNECTING = 0;
/**
@static
@type {number}
@const
*/
WebSocket.OPEN = 1;
/**
@static
@type {number}
@const
*/
WebSocket.CLOSING = 2;
/**
@static
@type {number}
@const
*/
WebSocket.CLOSED = 3;
/**
@type {string}
*/
WebSocket.prototype.url = null;
/**
@type {number}
@const
*/
WebSocket.prototype.readyState = 0;
/**
@type {number}
@const
*/
WebSocket.prototype.bufferedAmount = 0;
/**
@type {string}
@const
*/
WebSocket.prototype.extensions = null;
/**
@type {string}
@const
*/
WebSocket.prototype.protocol = null;
/**
@type {function(Event)}
*/
WebSocket.prototype.onopen = 0;
/**
@type {function({data: (String|Blob|ArrayBuffer)})}
*/
WebSocket.prototype.onmessage = 0;
/**
@type {function(Event)}
*/
WebSocket.prototype.onerror = 0;
/**
@type {function({code: Number, reason: String, wasClean: Boolean})}
*/
WebSocket.prototype.onclose = 0;
/**
@param {string} url
@param {...string} protocols
@constructor
*/
function WebSocket(url,protocols) {}
/**
@param {String|ArrayBuffer|ArrayBufferView|Blob} data
*/
WebSocket.prototype.send = function(data) {};
/**
@param {number} [code]
@param {string} [reason]
*/
WebSocket.prototype.close = function(code,reason) {};

/**
@type {number}
*/
ArrayBuffer.prototype.byteLength = 0;
/**
@param {number} length
@constructor
*/
function ArrayBuffer(length) {}

/**
@type {ArrayBuffer}
@const
*/
DataView.prototype.buffer = 0;
/**
@type {number}
@const
*/
DataView.prototype.byteOffset = 0;
/**
@type {number}
@const
*/
DataView.prototype.byteLength = 0;
/**
@param bufferOrArrayOrLength
@param {number} [byteOffset]
@param {number} [length]
@constructor
*/
function DataView(bufferOrArrayOrLength,byteOffset,length) {}
/**
@param {number} [byteOffset]
@return {number}
*/
DataView.prototype.getInt8 = function(byteOffset) {};

/**
@type {ArrayBuffer}
@const
*/
ArrayBufferView.prototype.buffer = 0;
/**
@type {number}
@const
*/
ArrayBufferView.prototype.byteOffset = 0;
/**
@type {number}
@const
*/
ArrayBufferView.prototype.byteLength = 0;
/**
@constructor
*/
function ArrayBufferView() {}

/**
@static
@type {number}
@const
*/
Int8Array.BYTES_PER_ELEMENT = 8;
Int8Array.prototype.length = 0;
/**
@param bufferOrArrayOrLength
@param {number} [byteOffset]
@param {number} [length]
@constructor
*/
function Int8Array(bufferOrArrayOrLength,byteOffset,length) {}
/**
@param {Int8Array} array
@param {number} [offset]
@return {void}
*/
Int8Array.prototype.set = function(array,offset) {};
/**
@param {number} begin
@param {number} [end]
@return {Int8Array}
*/
Int8Array.prototype.subarray = function(begin,end) {};
Int8Array.prototype = new ArrayBufferView();

/**
@static
@type {number}
@const
*/
Uint8Array.BYTES_PER_ELEMENT = 8;
/**
@type {number}
@const
*/
Uint8Array.prototype.length = 0;
/**
@param bufferOrArrayOrLength
@param {number} [byteOffset]
@param {number} [length]
@constructor
*/
function Uint8Array(bufferOrArrayOrLength,byteOffset,length) {}
/**
@param {Uint8Array} array
@param {number} [offset]
@return {void}
*/
Uint8Array.prototype.set = function(array,offset) {};
/**
@param {number} begin
@param {number} [end]
@return {Uint8Array}
*/
Uint8Array.prototype.subarray = function(begin,end) {};
Uint8Array.prototype = new ArrayBufferView();

/**
@static
@type {number}
@const
*/
Int16Array.BYTES_PER_ELEMENT = 16;
/**
@type {number}
@const
*/
Int16Array.prototype.length = 0;
/**
@param bufferOrArrayOrLength
@param {number} [byteOffset]
@param {number} [length]
@constructor
*/
function Int16Array(bufferOrArrayOrLength,byteOffset,length) {}
/**
@param {Int16Array} array
@param {number} [offset]
@return {void}
*/
Int16Array.prototype.set = function(array,offset) {};
/**
@param {number} begin
@param {number} [end]
@return {Int16Array}
*/
Int16Array.prototype.subarray = function(begin,end) {};
Int16Array.prototype = new ArrayBufferView();

/**
@static
@type {number}
@const
*/
Uint16Array.BYTES_PER_ELEMENT = 16;
/**
@type {number}
@const
*/
Uint16Array.prototype.length = 0;
/**
@param bufferOrArrayOrLength
@param {number} [byteOffset]
@param {number} [length]
@constructor
*/
function Uint16Array(bufferOrArrayOrLength,byteOffset,length) {}
/**
@param {Uint16Array} array
@param {number} [offset]
@return {void}
*/
Uint16Array.prototype.set = function(array,offset) {};
/**
@param {number} begin
@param {number} [end]
@return {Uint16Array}
*/
Uint16Array.prototype.subarray = function(begin,end) {};
Uint16Array.prototype = new ArrayBufferView();

/**
@static
@type {number}
@const
*/
Int32Array.BYTES_PER_ELEMENT = 32;
/**
@type {number}
@const
*/
Int32Array.prototype.length = 0;
/**
@param bufferOrArrayOrLength
@param {number} [byteOffset]
@param {number} [length]
@constructor
*/
function Int32Array(bufferOrArrayOrLength,byteOffset,length) {}
/**
@param {Int32Array} array
@param {number} [offset]
@return {void}
*/
Int32Array.prototype.set = function(array,offset) {};
/**
@param {number} begin
@param {number} [end]
@return {Int32Array}
*/
Int32Array.prototype.subarray = function(begin,end) {};
Int32Array.prototype = new ArrayBufferView();

/**
@static
@type {number}
@const
*/
Uint32Array.BYTES_PER_ELEMENT = 32;
/**
@type {number}
@const
*/
Uint32Array.prototype.length = 0;
/**
@param bufferOrArrayOrLength
@param {Number} [byteOffset]
@param {Number} [length]
@constructor
*/
function Uint32Array(bufferOrArrayOrLength,byteOffset,length) {}
/**
@param {Uint32Array} array
@param {Number} [offset]
@return {void}
*/
Uint32Array.prototype.set = function(array,offset) {};
/**
@param {Number} begin
@param {Number} [end]
@return {Uint32Array}
*/
Uint32Array.prototype.subarray = function(begin,end) {};
Uint32Array.prototype = new ArrayBufferView();

/**
@static
@type {number}
@const
*/
Float32Array.BYTES_PER_ELEMENT = 32;
/**
@type {number}
@const
*/
Float32Array.prototype.length = 0;
/**
@param bufferOrArrayOrLength
@param {number} [byteOffset]
@param {number} [length]
@constructor
*/
function Float32Array(bufferOrArrayOrLength,byteOffset,length) {}
/**
@param {Float32Array} array
@param {number} [offset]
@return {void}
*/
Float32Array.prototype.set = function(array,offset) {};
/**
@param {number} begin
@param {number} [end]
@return {Float32Array}
*/
Float32Array.prototype.subarray = function(begin,end) {};
Float32Array.prototype = new ArrayBufferView();

/**
@static
@type {number}
@const
*/
Float64Array.BYTES_PER_ELEMENT = 64;
/**
@type {number}
@const
*/
Float64Array.prototype.length = 0;
/**
@param {number} bufferOrArrayOrLength
@param {number} [byteOffset]
@param {number} [length]
@constructor
*/
function Float64Array(bufferOrArrayOrLength,byteOffset,length) {}
/**
@param {Float64Array} array
@param {number} [offset]
@return {void}
*/
Float64Array.prototype.set = function(array,offset) {};
/**
@param {number} begin
@param {number} [end]
@return {Float64Array}
*/
Float64Array.prototype.subarray = function(begin,end) {};
Float64Array.prototype = new ArrayBufferView();

/**
@param {Function} successCallback
@param {Function} [errorCallback]
@param {Object} [options]
@return {void}
*/
Geolocation.prototype.getCurrentPosition = function(successCallback,errorCallback,options) {};
/**
@param {Function} successCallback
@param {Function} [errorCallback]
@param {Object} [options]
@return {Number}
*/
Geolocation.prototype.watchPosition = function(successCallback,errorCallback,options) {};
/**
@param {Number} [watchId]
*/
Geolocation.prototype.clearWatch = function(watchId) {};
Geolocation = {};

/**
@type {Geolocation}
@const
*/
Navigator.prototype.geolocation = 0;
Navigator = {};

/**
@type {boolean}
*/
PositionOptions.prototype.enableHighAccuracy = 0;
/**
@type {Number}
*/
PositionOptions.prototype.timeout = 0;
/**
@type {Number}
*/
PositionOptions.prototype.maximumAge = 0;
PositionOptions = {};

/**
@type {Coordinates}
*/
Position.prototype.coords = 0;
/**
@type {Number}
*/
Position.prototype.timestamp = 0;
Position = {};

/**
@type {Number}
@const
*/
Coordinates.prototype.latitude = 0;
/**
@type {Number}
@const
*/
Coordinates.prototype.longitude = 0;
/**
@type {Number}
@const
*/
Coordinates.prototype.altitude = 0;
/**
@type {Number}
@const
*/
Coordinates.prototype.accuracy = 0;
/**
@type {Number}
@const
*/
Coordinates.prototype.altitudeAccuracy = 0;
/**
@type {Number}
@const
*/
Coordinates.prototype.heading = 0;
/**
@type {Number}
@const
*/
Coordinates.prototype.speed = 0;
Coordinates = {};

/**
@type {number}
@const
*/
PositionError.prototype.PERMISSION_DENIED = 1;
/**
@type {number}
@const
*/
PositionError.prototype.POSITION_UNAVAILABLE = 2;
/**
@type {number}
@const
*/
PositionError.prototype.TIMEOUT = 3;
/**
@type {number}
@const
*/
PositionError.prototype.code = 0;
/**
@type {string}
@const
*/
PositionError.prototype.message = null;
PositionError = {};

/**
 * @interface
 */
function XMLHttpRequestEventTarget() {}
/**
@type {function(Event)}
*/
XMLHttpRequestEventTarget.prototype.onloadstart = 0;
/**
@type {function(Event)}
*/
XMLHttpRequestEventTarget.prototype.onprogress = 0;
/**
@type {function(Event)}
*/
XMLHttpRequestEventTarget.prototype.onabort = 0;
/**
@type {function(Event)}
*/
XMLHttpRequestEventTarget.prototype.onerror = 0;
/**
@type {function(Event)}
*/
XMLHttpRequestEventTarget.prototype.onload = 0;
/**
@type {function(Event)}
*/
XMLHttpRequestEventTarget.prototype.ontimeout = 0;
/**
@type {function(Event)}
*/
XMLHttpRequestEventTarget.prototype.onloadend = 0;
XMLHttpRequestEventTarget.prototype = new EventTarget();

/**
 * @interface
 */
function XMLHttpRequestUpload() {}
XMLHttpRequestUpload.prototype = new XMLHttpRequestEventTarget();

/**
@param {string} name
@param {Object} value
@return {void}
*/
FormData.prototype.append = function(name,value) {};
FormData = {};

/**
@type {boolean}
*/
HTMLSelectElement.prototype.autofocus = 0;
/**
@type {boolean}
*/
HTMLSelectElement.prototype.required = 0;
/**
@type {HTMLCollection}
*/
HTMLSelectElement.prototype.selectedOptions = 0;
/**
@type {string}
*/
HTMLSelectElement.prototype.validationMessage = null;
/**
@type {ValidityState}
*/
HTMLSelectElement.prototype.validity = 0;
/**
@type {boolean}
@const
*/
HTMLSelectElement.prototype.willValidate = 0;
/**
@return {boolean}
*/
HTMLSelectElement.prototype.checkValidity = function() {};
/**
@param {Number} index
@return {Element}
*/
HTMLSelectElement.prototype.item = function(index) {};
/**
@param {string} name
@return {Element}
*/
HTMLSelectElement.prototype.namedItem = function(name) {};
/**
@param {string} [error]
@return {void}
*/
HTMLSelectElement.prototype.setCustomValidity = function(error) {};
HTMLSelectElement = {};

/**
 * @interface
 */
function ValidityState() {}
/**
@type {boolean}
@const
*/
ValidityState.prototype.valueMissing = 0;
/**
@type {boolean}
@const
*/
ValidityState.prototype.typeMismatch = 0;
/**
@type {boolean}
@const
*/
ValidityState.prototype.patternMismatch = 0;
/**
@type {boolean}
@const
*/
ValidityState.prototype.tooLong = 0;
/**
@type {boolean}
@const
*/
ValidityState.prototype.rangeUnderflow = 0;
/**
@type {boolean}
@const
*/
ValidityState.prototype.rangeOverflow = 0;
/**
@type {boolean}
@const
*/
ValidityState.prototype.stepMismatch = 0;
/**
@type {boolean}
@const
*/
ValidityState.prototype.badInput = 0;
/**
@type {boolean}
@const
*/
ValidityState.prototype.customError = 0;
/**
@type {boolean}
@const
*/
ValidityState.prototype.valid = 0;

/**
@type {HTMLHeadElement}
@const
*/
Document.prototype.head = 0;
Document = {};

/**
@param {Function} callback
@constructor
*/
function MutationObserver(callback) {}
/**
@param {Node} target
@param {{childList:boolean, attributes:boolean, characterData:boolean, subtree:boolean, attributeOldValue:boolean, characterDataOldValue:boolean, attributeFilter:Array<String>}} options
@return {void}
*/
MutationObserver.prototype.observe = function(target,options) {};
/**
@return {void}
*/
MutationObserver.prototype.disconnect = function() {};
/**
@return {Array<MutationRecord>}
*/
MutationObserver.prototype.takeRecords = function() {};

/**
@type {string}
@const
*/
MutationRecord.prototype.type = null;
/**
@type {Node}
@const
*/
MutationRecord.prototype.target = 0;
/**
@type {NodeList}
@const
*/
MutationRecord.prototype.addedNodes = 0;
/**
@type {NodeList}
@const
*/
MutationRecord.prototype.removedNodes = 0;
/**
@type {Node}
@const
*/
MutationRecord.prototype.previousSibling = 0;
/**
@type {Node}
@const
*/
MutationRecord.prototype.nextSibling = 0;
/**
@type {string}
@const
*/
MutationRecord.prototype.attributeName = null;
/**
@type {string}
@const
*/
MutationRecord.prototype.attributeNamespace = null;
/**
@type {string}
@const
*/
MutationRecord.prototype.oldValue = null;
MutationRecord = {};

/**
 * @interface
 */
function DataTransferItem() {}
/**
@type {string}
@const
*/
DataTransferItem.prototype.kind = null;
/**
@type {string}
@const
*/
DataTransferItem.prototype.type = null;
/**
@param {function(string):void} [_callback]
*/
DataTransferItem.prototype.getAsString = function(_callback) {};
/**
@return {File}
*/
DataTransferItem.prototype.getAsFile = function() {};

/**
 * @interface
 */
function DataTransferItemList() {}
/**
@type {number}
@const
*/
DataTransferItemList.prototype.length = 0;
/**
@param {number} index
@return {DataTransferItem}
*/
DataTransferItemList.prototype.getDataTransferItem = function(index) {};
/**
@param {string} data
@param {string} type
*/
DataTransferItemList.prototype.add = function(data,type) {};
/**
@param {File} data
*/
DataTransferItemList.prototype.add = function(data) {};
/**
@param {number} index
*/
DataTransferItemList.prototype.remove = function(index) {};
DataTransferItemList.prototype.clear = function() {};

/**
 * @interface
 */
function DataTransfer() {}
/**
@type {string}
*/
DataTransfer.prototype.dropEffect = null;
/**
@type {string}
*/
DataTransfer.prototype.effectAllowed = null;
/**
@type {DataTransferItemList}
@const
*/
DataTransfer.prototype.items = 0;
/**
@type {String[]}
@const
*/
DataTransfer.prototype.types = 0;
/**
@type {FileList}
@const
*/
DataTransfer.prototype.files = 0;
/**
@param {Element} image
@param {number} x
@param {number} y
*/
DataTransfer.prototype.setDragImage = function(image,x,y) {};
/**
@param {string} format
@return {string}
*/
DataTransfer.prototype.getData = function(format) {};
/**
@param {string} format
@param {string} data
*/
DataTransfer.prototype.setData = function(format,data) {};
/**
@param {string} [format]
*/
DataTransfer.prototype.clearData = function(format) {};
/**
@type {string}
*/
XMLHttpRequest.prototype.responseType = null;
/**
@type {Object}
*/
XMLHttpRequest.prototype.response = 0;
/**
@type {boolean}
*/
XMLHttpRequest.prototype.withCredentials = 0;
/**
@type {XMLHttpRequestEventTarget}
@const
*/
XMLHttpRequest.prototype.upload = 0;
/**
@param {string} mimeType
*/
XMLHttpRequest.prototype.overrideMimeType = function(mimeType) {};
/**
@type {string}
*/
HTMLFormElement.prototype.autocomplete = null;
/**
@type {boolean}
*/
HTMLFormElement.prototype.noValidate = 0;

 

 

0
0
分享到:
评论

相关推荐

    HTML5程序设计(第2版)

    为读者清晰解读了HTML5规范的缘由、发展和现状,全面展示了如何使用WebSocket、Geolocation、Web Storage、Canvas、SVG及音频/视频等前所未有的新特性构建最流行、最强大的Web应用,并以大量的示例涵盖全部HTML5 API...

    HTML5元素拖拽drag与拖放drop相关API

    其实HTML5就是新增一些有用的API让我们更轻松的开发从而把更多精力都放在业务逻辑上来这些API的使用也非常简单不过我的记性不太好所以还是以博客的形式记录下来(手动滑稽)今天就来写一下这个拖拽API说起拖放,其实...

    工程硕士学位论文 基于Android+HTML5的移动Web项目高效开发探究

    然而,由于HTML5的W3C标准规范还未制定,安卓系统中类浏览器Webview自身存在一些局限性,因此仍存在着诸多问题亟需解决,包括:(1)多窗口类浏览器模式问题。安卓上用于加载的Webview视图窗口只是作为类浏览器而...

    springboot_dubbo_guns:猫眼项目API网关构建

    枪支v3.0增加剩余api服务,提供对接服务端接口的支持,并利用jwt令牌鉴权机制赋予客户端的访问权限,传输数据进行md5签名保证传输过程数据的安全性!枪支v4.0更新内容spring boot升级到2.0版本!简化前端所有的html...

    H5P.Android:适用于AndroidHTML5 Plus

    Android平台5+App/uni-app运行环境开源项目 重要:请使用HBuilderX2.3.7-20191024生成本地打包App资源,否则uni-app项目可能提示“运行环境版本和...即,开发者不能自主新增5+/uni-app的js API规范。 任何一个项目

    基于Guns+springboot+dubbo开发+源代码+文档说明

    Guns v3.0新增rest api服务,提供对接服务端接口的支持,并利用jwt token鉴权机制给予客户端的访问权限,传输数据进行md5签名保证传输过程数据的安全性! ### Guns v4.0更新内容 &gt; * spring boot升级到2.0版本! &gt; * ...

    青否云 - 小程序待办事项vue开源系统

    点击创建字段,选择public分组,user数据表,password字段,值为空,类型选择md5,传值选择是,请求链接选择为空。 点击创建字段,选择home分组,todos数据表,user_id字段,值为Authorization.id。类型为空,传值...

    jquery插件使用方法大全

    jQuery 1.2.6(2008年5月):这一版主要是将Brandon Aaron开发的流行的Dimensions插件的功能移植到了核心库中。 jQuery 1.3(2009年1月):这一版使用了全新的选择符引擎Sizzle,库的性能也因此有了极大提升。这一...

    Zoomla!逐浪CMS2 x3.9.6.zip

    45、增加:重写了短信SMS模块框架,便于快速接入新短信API 46、增加:腾迅短信模块 47、增加:商城专题功能 48、增加:手机与PC多文件上传组件 49、扩展:商城支持批量添加至专题 50、修复:专题标示名空格Bug,继承...

    Zoomla!逐浪CMS 3.9.6.rar

    45.增加:重写了短信SMS模块框架,便于快速接入新短信API;46.增加:腾迅短信模块;47.增加:商城专题功能;48.增加:手机与PC多文件上传组件;49.扩展:商城支持批量添加至专题;50.修复:专题标示名空格Bug,继承父级属性...

    枪电影:枪,dubbo

    枪支v3.0增加剩余api服务,提供对接服务端接口的支持,并利用jwt令牌鉴权机制赋予客户端的访问权限,传输数据进行md5签名保证传输过程数据的安全性! 枪支v4.0更新内容 spring boot升级到2.0版本! 简化前端所有的...

    断代、新生、创未来-Zoomla!逐浪CMS2 x3.9.6全面发布

    45、增加:重写了短信SMS模块框架,便于快速接入新短信API 46、增加:腾迅短信模块 47、增加:商城专题功能 48、增加:手机与PC多文件上传组件 49、扩展:商城支持批量添加至专题 50、修复:专题标示名空格Bug,继承...

    asp.net知识库

    从SQL中的一个表中导出HTML文件表格 获取數据库表的前N条记录 几段SQL Server语句和存储过程 生成表中的数据的脚本 最详细的SQL注入相关的命令整理 Oracle Oracle中PL/SQL单行函数和组函数详解 mssql+oracle Oracle...

    javapms门户网站源码

    系统所有web页面制作遵循w3c标准制作,采用最新的html5规范,基于div+css布局,所有标签生成的html代码都经过跨浏览器测试。javascript脚本基于jquery和javascript标准编写,有效的解决了js跨浏览器的问题,系统可以...

    rfcs:征求意见和改进建议

    Darwinia RFC(征求意见)描述了 Darwinia 网络的标准,包括核心协议规范、客户端 API 和标准提案。 协议和标准研究的工作分为两部分。 第一部分来自社区。 Darwinia Network 接受来自社区的任何 RFC 提交,包括...

    亮剑.NET深入体验与实战精要2

    14.4.1 扩展新增数据访问层 512 14.4.2 IDAL抽象接口的实现 513 14.4.3 创建DAL对象的封装 517 14.4.4 实现抽象工厂模式 519 14.4.5 工厂模式的三层架构图 521 本章常见技术面试题 522 职场智慧之程序员的职业规划 ...

    亮剑.NET深入体验与实战精要3

    14.4.1 扩展新增数据访问层 512 14.4.2 IDAL抽象接口的实现 513 14.4.3 创建DAL对象的封装 517 14.4.4 实现抽象工厂模式 519 14.4.5 工厂模式的三层架构图 521 本章常见技术面试题 522 职场智慧之程序员的职业规划 ...

    layui前端框架-其他

    &lt;p&gt;layui是一款采用自身模块规范编写的前端UI框架,遵循原生HTML/CSS/JS的书写与组织形式,门槛极低,拿来即用。其外在极简,却又不失饱满的内在,体积轻盈,组件丰盈,从核心代码到API的每一处细节都经过精心雕琢,...

Global site tag (gtag.js) - Google Analytics