会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大脸猫lkk
博客园
首页
新随笔
联系
订阅
管理
2017年9月12日
pc端页面检测跳手机端
摘要: pc端页面检测跳手机端 第一种方法: <script> if(navigator.platform.indexOf('Win32')!=-1){ //pc window.location.href="电脑网址"; }else{ //shouji window.location.href="手机网址"
阅读全文
posted @ 2017-09-12 16:35 大脸猫lkk
阅读(338)
评论(0)
推荐(0)
2017年9月4日
embed
摘要: <embed src="URL" widht=播放显示宽度 height=播放显示高度 autostart=true/false loop=true/false></embed>
阅读全文
posted @ 2017-09-04 10:56 大脸猫lkk
阅读(194)
评论(0)
推荐(0)
2017年9月1日
数据表数据转移
摘要: Insert into Table2(a, c, d) select a,c,5 from Table1
阅读全文
posted @ 2017-09-01 16:55 大脸猫lkk
阅读(116)
评论(0)
推荐(0)
2017年8月24日
js 跳转新页面
摘要: window.location = "http://www.xxxxxxxx.net" 跳转后有后退功能 其实应该是 window.location.hrefwindow.location.replace("http://www.xxxxxxxx.net") 跳转后没有后退功能 window.ope
阅读全文
posted @ 2017-08-24 17:10 大脸猫lkk
阅读(13631)
评论(0)
推荐(0)
2017年8月14日
smtp php发送邮件
摘要: 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
阅读(201)
评论(0)
推荐(0)
2017年7月29日
js 数字相加
摘要: var c = Number(a) + Number(b);
阅读全文
posted @ 2017-07-29 17:46 大脸猫lkk
阅读(373)
评论(0)
推荐(0)
2017年7月28日
截取字一段文字
摘要: <?php $str = $row['title']; $lenth = strlen($str); if($lenth>=48){ $str = substr($str,0,42)."...";}echo $str;?>
阅读全文
posted @ 2017-07-28 17:20 大脸猫lkk
阅读(184)
评论(0)
推荐(0)
html中js的跳转
摘要: <script type="text/javascript"> function tj(id){ window.location.href = 'productc-'+id+'-1.html'; } </script>
阅读全文
posted @ 2017-07-28 17:17 大脸猫lkk
阅读(277)
评论(0)
推荐(0)
公告