摘要: pc端页面检测跳手机端 第一种方法: <script> if(navigator.platform.indexOf('Win32')!=-1){ //pc window.location.href="电脑网址"; }else{ //shouji window.location.href="手机网址" 阅读全文
posted @ 2017-09-12 16:35 大脸猫lkk 阅读(302) 评论(0) 推荐(0) 编辑
摘要: <embed src="URL" widht=播放显示宽度 height=播放显示高度 autostart=true/false loop=true/false></embed> 阅读全文
posted @ 2017-09-04 10:56 大脸猫lkk 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Insert into Table2(a, c, d) select a,c,5 from Table1 阅读全文
posted @ 2017-09-01 16:55 大脸猫lkk 阅读(111) 评论(0) 推荐(0) 编辑
摘要: window.location = "http://www.xxxxxxxx.net" 跳转后有后退功能 其实应该是 window.location.hrefwindow.location.replace("http://www.xxxxxxxx.net") 跳转后没有后退功能 window.ope 阅读全文
posted @ 2017-08-24 17:10 大脸猫lkk 阅读(13595) 评论(0) 推荐(0) 编辑
摘要: Mail.class.php <?php header("content-type:text/html;charset=utf-8"); //引入原来的类文件 require 'class.phpmailer.php'; class Mail { static public $error = ''; 阅读全文
posted @ 2017-08-14 13:56 大脸猫lkk 阅读(194) 评论(0) 推荐(0) 编辑
摘要: var c = Number(a) + Number(b); 阅读全文
posted @ 2017-07-29 17:46 大脸猫lkk 阅读(368) 评论(0) 推荐(0) 编辑
摘要: <?php $str = $row['title']; $lenth = strlen($str); if($lenth>=48){ $str = substr($str,0,42)."...";}echo $str;?> 阅读全文
posted @ 2017-07-28 17:20 大脸猫lkk 阅读(180) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> function tj(id){ window.location.href = 'productc-'+id+'-1.html'; } </script> 阅读全文
posted @ 2017-07-28 17:17 大脸猫lkk 阅读(271) 评论(0) 推荐(0) 编辑