07 2015 档案
摘要:什么是跨域? 概念:只要协议、域名、端口有任何一个不同,都被当作是不同的域。URL 说明 是否允许通信 http://www.a.com/a.js http://www.a.com/b.js 同一域名下 允许 http://www.a.com/lab/a.js http://www.a.com/script/b.js 同一域名下不同...
阅读全文
摘要:registerEvents:function() { this.events = new OpenLayers.Events(this, this.div, null, true); function onTouchstart(evt) { OpenLayers.Event.stop(evt, true); } this.events.on({ ...
阅读全文