摘要:
Viewport(视口)概念In web browsers, the viewport is the visible portion of the entire document.移动端浏览器在一个通常比屏幕更宽的虚拟”窗口“(视口)中渲染页面,从而无需将所有页面都压缩进小屏幕里(那样会把很多没有针... 阅读全文
摘要:
var reg = /^((http|https|ftp)\:\/\/)?(((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|([^0-9][a-zA-Z_0-9\-\.\/])+)((:[a-zA-Z0-9]*)?\/?[a-zA-Z0-9\-\._\?\,\/\:\'\/\\\+&%\$#\=~])*$/; 阅读全文
摘要:
var pro = document.getElementById("province"); var obj = {}; function getValue(){ var index = pro.selectedIndex; obj[pro.options[index].text] = { key: index }; var city =document.getElementById("city"); obj[pro.options[index].text].values = {}; for (var j = 0, len ... 阅读全文