随笔分类 - 商务通
商务通+快商通
摘要:1、判断是否是手机端 function isMobile() { // 如果有HTTP_X_WAP_PROFILE则一定是移动设备 if (isset($_SERVER['HTTP_X_WAP_PROFILE'])) { return true; } // 如果via信息含有wap则一定是移动设备,
阅读全文
摘要:1、iframe标签按照常规响应式的样式写就可以了,比如: <style type="text/css"> iframe{width:100%;min-height:471px} @media screen and (max-width: 640px) { #iframe{min-height:27
阅读全文
摘要:<html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> ul{ background: aqua; } li{ display: inline-block; } </style> </head> <bo
阅读全文
摘要:首先测试URL:http://192.168.1.82:8020/juzhong/daojishi.html?name=xiangruding&sex=nuuu&age=90 代码如下:(说明:获取的是当前页面的URL;这里测试需要在后边自己手动添加 ?name=xiangruding&sex=nu
阅读全文
摘要:/*获取当前时间*/ var now = new Date(); var hh = now.getHours(); var mm = now.getMinutes(); var ss = now.getSeconds(); var date1 = document.getElementById("n
阅读全文
摘要:用javascript获取url网址信息 <script type="text/javascript"> document.write("location.host="+location.host+"<br>"); document.write("location.hostname="+locati
阅读全文
摘要:表单提交到商务通后台 中文说明加换行的实现方法 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htm
阅读全文
摘要:1 function parseURL(url) { 2 var a = document.createElement('a'); 3 a.href = url; 4 return { 5 source: url, 6 protocol: a.protocol.replace(':',''), 7
阅读全文