摘要:
Database.html<!DOCTYPE HTML><html><head><meta charset="UTF-8"><title></title></head><body><script>if(window.Worker){var worker=new Worker('worker.js');//向worker发送消息worker.onerror=function(e){alert("于第["+e.lineno+"
阅读全文
posted @ 2012-07-08 13:45
cobrenda
阅读(247)
推荐(0)
编辑
摘要:
<!DOCTYPE HTML><html><head><meta charset="UTF-8"><title></title></head><body><script>//(4)SQL操作的回调函数function queryResult(tx,result){try{var rowList=result.rows;for(var i=0;i<rowList.length;i++){var row=rowList.item(i);for(var j in ro
阅读全文
posted @ 2012-07-08 13:45
cobrenda
阅读(190)
推荐(0)
编辑
摘要:
<!DOCTYPE HTML><html><head><meta charset="UTF-8"><title></title></head><body><script>//(4)SQL操作的回调函数function queryResult(tx,result){try{var rowList=result.rows;for(var i=0;i<rowList.length;i++){var row=rowList.item(i);for(var j in ro
阅读全文
posted @ 2012-07-08 13:43
cobrenda
阅读(241)
推荐(0)
编辑
摘要:
视频支持的格式:ogg,h.264,mp4,webm音频支持的格式:oggvorbis,mp3,wav,aac,webm音频需要配置mime类型viedo.html<!DOCTYPE HTML><html><head><meta charset="UTF-8"><title>视频和音频</title></head><body><div style="text-align:center;"><video width="640"
阅读全文
posted @ 2012-07-08 13:41
cobrenda
阅读(217)
推荐(0)
编辑
摘要:
<!DOCTYPE HTML><html><head><meta charset="UTF-8"><title></title><script>var socket;function init(){var url="ws://localhost/12345/";try{socket=new WebSocket(url);socket.onopen=function(event){log("连接已建立"+this.readyState);}; socke
阅读全文
posted @ 2012-07-08 13:40
cobrenda
阅读(1313)
推荐(0)
编辑
摘要:
sse.html<!DOCTYPE HTML><html><head><meta charset="UTF-8"><title></title><script>var source;function init(){var url="http://localhost/eventsource/server.php";try{source=new EventSource(url);source.onopen=function(event){log("连接已建立&quo
阅读全文
posted @ 2012-07-08 13:39
cobrenda
阅读(246)
推荐(0)
编辑
摘要:
<!DOCTYPE HTML><html><head><meta charset="UTF-8"><title></title><script src="http://maps.google.com/maps/api/js?sensor=false"></script></head><body><input type="button" id="btn" value="获取位置&qu
阅读全文
posted @ 2012-07-08 13:37
cobrenda
阅读(241)
推荐(0)
编辑
摘要:
worker.html<html><head></head><body><span id="state" style="background-color:#09F"> </span><script>var state=document.getElementById('state');if(window.Worker){var worker=new Worker('worker.js');//向worker发送消息worke
阅读全文
posted @ 2012-07-08 13:35
cobrenda
阅读(124)
推荐(0)
编辑
摘要:
inner.html<html><head></head><body><span id="state" style="background-color:#09F"> </span><script>var state=document.getElementById('state');if(window.SharedWorker){var worker=new SharedWorker('worker.js');worker.
阅读全文
posted @ 2012-07-08 13:33
cobrenda
阅读(230)
推荐(0)
编辑