判断是否是微信浏览器 不指定

jed , 2018-3-7 08:29 , 代码编程 , 评论(0) , 阅读(3318) , Via 本站原创

navigator.userAgent.toLowerCase().indexOf("micromessenger") >= 0;

phpstorm使用教程 不指定

jed , 2018-3-5 10:28 , 代码编程 , 评论(0) , 阅读(4562) , Via 本站原创
、设置行号 show line numbers  设置里面搜索这个,可以设置默认显示行号

2、设置自动换行 use soft wraps in editor

3、设置 FTP  搜索 Deployment 快捷键 Shift+Ctrl+Alt+X

1.设置新建文件的编码
File -> Settings -> File Encoding 进行调整,一般为utf-8。
2.对jquery等一些javascript库的一些提示
File -> Settings -> javascript -> Libraries 点击download选择需要下载的js库。
3、取消自动保存
File ->Settings ->System Setting 取消 save files on frame deactivation 。

4、修改的文件标记星星(即*)

File ->Settings ->Editor -> Editor Tabs,,勾选mark modified tabs width asterisk选项.



代码快捷键:



ctrl+j            插入活动代码提示
ctrl+alt+t        当前位置插入环绕代码
alt+insert        生成代码菜单

ctrl+q            查看代码注释
ctrl+d            复制当前行
ctrl+y            删除当前行
shift+F6          重命名
ctrl+shift+u      字母大小写转换
ctrl+f            查找
ctrl+r            替换
F4                查看源码
ctrl+shift+i      查看变量或方法定义源
ctrl+g            跳转行
ctrl+alt+F12      跳转至当前文件在磁盘上的位置
alt+down          查看下一个方法
alt+up            查看上一个方法
ctrl+alt+l        重新格式化代码
ctrl+shift+down   statement向下移动
ctrl+shift+up     statement向上移动
alt+shift+down    line向下移动
alt+shift+up      line向上移动
ctrl+/            行注释
ctrl+shift+/      块注释

ctrl+shift+n      打开工程中的文件
ctrl+b            跳到变量申明处
ctrl+[]           匹配 {}[]
ctrl+shift+]/[    选中块代码....

ctrl+x            剪切行
ctrl+shift+v      复制多个文本
alt+left/right    标签切换
ctrl+p            显示默认参数

Ctrl + Alt + L    格式化代码
alt + '7'         显示当前的函数结构
ctrl + '.'        折叠选中的代码的代码
ctrl + '-/+'      可以折叠项目中的任何代码块,包括htm中的任意nodetype=3的元素,function,或对象直接量等等。它不是选中折叠,而是自动识别折叠
ctrl + F12        可以显示当前文件的结构



配置ftp:

http://bbs.csdn.net/topics/390677784

http://www.cnblogs.com/jikey/p/3486621.html

tools-devloy。。。



配置svn:

http://jingyan.baidu.com/article/c275f6ba240f4ee33c75677f.html

常见svn错误:



Can't use Subversion command line client: https://XXX/xxx

Probably the path to Subversion executable is wrong. Fix it. (show balloon)

解决:指定svn命令行

在菜单栏中选择“File”->“Settings”->“Subversion”->“General”打开属性面板。勾选“Use command line client”填写你的TortoiseSVN安装目录如:C:\Program Files\TortoiseSVN\bin\svn.exe。

我在TortoiseSVN1.9中的目录没找到svn.exe,反倒是在我安装的VisualSVN 服务器端找到了,C:\Program Files (x86)\VisualSVN Server\bin,应用即可。

如果:

https://pcdalao/svn/项目  Vis svn给你分配的路径  别人访问不到。

就用https://你的ip/svn/项目

注意要关闭防火墙





xdebug调试:

任务:我有一个本地配好的Thinkphp项目,正常访问连接是,http://192.168.1.248:94 ,那么我要调试Admin模块Test控制器的index方法,

也就是http://192.168.1.248:94/admin/test/index



准备工作:

1.谷歌浏览器,并下载插件2个插件。JetBrains IDE Support,Xdebug helper


=================================================

1
本地修改记录:在项目名称上右键,点击Local History | Show History。你可以看到项目文件各个历史版本;Alt+Shift+C,可以看到项目最近的修改。这就是它的版本集成功能特性。



2
最近编辑:Ctrl+E。可以快速打开你最近编辑的文件。



PhpStorm中文教程
3
代码分界线:打开File | Setting | Editor,选择Appearance下面的Show Method Separators。它会将你的代码按方法,用灰色线框进行智能分割。你还可以使用:alt+↑或↓,在方法之间进行跳转。

PhpStorm中文教程
4
代码输入提示:IDE基于系统函数库,关联项目文件的方法名,当前文件内容,内部文件路径(使用【Ctrl+空格】补全)进行代码提示。

5
粘贴板:使用Ctrl+Shift+V。可以选择需要粘贴的最近内容。

6
皮肤切换:Ctrl+反引号,可以快速切换皮肤。

7
快速查看样式:在HTML标签上进行右键,选择Show Applied Styles For Tag。可以快速查看该标签应用的样式。类似于前端开发工程师常用的firebug。



PhpStorm中文教程
8
查找和替换:当前文件中的文本查找和替换使用Ctrl+F和Ctrl+R;

END
本Discuz uc.key泄露导致代码注入漏洞适用所有用UC整合和程序,修复此漏洞所在的目录请在阿里云报告的位置进行查找,因为每个程序放置uc.php的目录不一定都是一样的。



漏洞名称:Discuz uc.key泄露导致代码注入漏洞

补丁文件:/api/uc.php

补丁来源:云盾自研

漏洞描述:在Discuz中,uc_key是UC客户端与服务端通信的通信密钥,discuz中的/api/uc.php存在代码写入漏洞,导致黑客可写入恶意代码获取uckey,最终进入网站后台,造成数据泄漏。您也可以登录官方网站更新到最新版本解决
Tags:
Unslider是一个非常纯粹的jquery幻灯片插件,它没有多余的特效,用的只是非常简单也非常普通的滚动特效,但它的优点在于文件非常小,只有3K,CSS可以完全自定义,支持各现代浏览器,支持键盘操作。Unslider可以自动检测图片的高度,并自动平滑的调整图片的高度来适应幻灯片。

智能简繁体转换 不指定

jed , 2015-7-29 08:31 , 代码编程 , 评论(0) , 阅读(21744) , Via 本站原创

php中序列化与反序列化 不指定

jed , 2013-7-7 06:37 , 代码编程 , 评论(0) , 阅读(173891) , Via 本站原创
把复杂的数据类型压缩到一个字符串中

serialize() 把变量和它们的值编码成文本形式
unserialize() 恢复原先变量
jquery实现动态添加文本框和下拉框效果...

优酷搜索框美化代码 不指定

jed , 2012-12-14 06:17 , 代码编程 , 评论(0) , 阅读(8774) , Via 本站原创

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="content-type" content="text/html; charset=GB2312">



<title>CSS样式搜索框美化系列(4)</title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<style>
/*basic*/
*{padding:0;margin:0;color:#000;font:12px/20px Arial,Sans-serif,"宋体";}
/*elements*/
.clear{clear:both;height:0px;overflow:hidden;}
ul,li,ol{list-style-type:none;list-style-position:outside;}
button,.btnNormal{height:22px;line-height:18px;padding:0 9px!important;padding:0 5px;}
a{color:#0042ff;text-decoration:underline;}
a,a *{cursor:pointer;}
a img{border:0;}
.searchTool{float:left;width:520px;}
.searchTool .searchExtend{float:left;line-height:24px;_padding-top:5px;}
.searchTool .radio{vertical-align:middle;margin-left:10px;margin-right:2px;*margin-right:0;}
.searchTool .txtSearch{float:left;width:232px;padding:2px 2px 0 2px;height:20px;line-height:20px;vertical-align:bottom;border:1px solid #3e99d4;}
.searchTool .selSearch{float:left;width:60px;background:#fff;height:22px;line-height:22px;border:1px solid #3e99d4;border-left:0;}
.searchTool .nowSearch{float:left;width:40px;height:20px;line-height:22px;overflow:hidden;padding-left:4px;}
.searchTool .btnSel{float:right;border-left:1px solid #3e99d4;width:14px;height:22px;}
.searchTool .btnSel a{background:url(http://static.youku.com/v1.0.0217/index/img/btn_sel.gif) no-repeat center center;display:block;width:14px;height:22px;}
.searchTool .btnSel a:hover{background:url(http://static.youku.com/v1.0.0217/index/img/btn_sel_over.gif) no-repeat center center;border:1px solid #fff;width:12px;height:20px;}
.searchTool .selOption{z-index:9999;position:absolute;margin-left:-1px;width:60px;background:#fff;border:1px solid #3e99d4;}
.searchTool .selOption a{display:block;height:21px;padding-left:5px;line-height:21px;color:#000;text-decoration:none;}
.searchTool .selOption a:hover{color:#fff;background:#95d5f1;}
.searchTool .btnSearch{float:left;margin-left:10px;width:58px;height:22px;line-height:22px;border:1px solid #3e99d4;overflow:hidden;}
.searchTool .btnSearch a{background:url(http://static.youku.com/v1.0.0217/index/img/bg_nav_option.gif) repeat-x center -6px;display:block;text-decoration:none;height:22px;line-height:22px;overflow:hidden;}
.searchTool .btnSearch a:hover{background:url(http://static.youku.com/v1.0.0217/index/img/bg_nav_option_over.gif) repeat-x center center;border:1px solid #fff;height:20px;line-height:20px;}
.searchTool .btnSearch .lbl{cursor:pointer;display:block;width:40px;padding-left:5px;letter-spacing:5px;text-align:center;height:18px;padding-top:1px;margin:0 auto;filter:progid:DXImageTransform.Microsoft.DropShadow(color=#daeefa,offX=1,offY=1,positives=true);}
.searchTool .btnSearch a:hover .lbl{padding-top:0px;}
</style>
<script>
function drop_mouseover(pos){
try{window.clearTimeout(timer);}catch(e){}
}
function drop_mouseout(pos){
var posSel=document.getElementById(pos+"Sel").style.display;
if(posSel=="block"){
  timer = setTimeout("drop_hide('"+pos+"')", 1000);
}
}
function drop_hide(pos){
document.getElementById(pos+"Sel").style.display="none";
}
function search_show(pos,searchType,href){
    document.getElementById(pos+"SearchType").value=searchType;
    document.getElementById(pos+"Sel").style.display="none";
    document.getElementById(pos+"Slected").innerHTML=href.innerHTML;
    document.getElementById(pos+'q').focus();
    var sE = document.getElementById("searchExtend");
    if(sE != undefined && searchType == "bar"){
     sE.style.display="block";
    }else if(sE != undefined){
     sE.style.display="none";
    }
try{window.clearTimeout(timer);}catch(e){}
return false;
}
</script>
</head><body>
<h3><a href="http://www.dzhope.com/" style="color: rgb(0, 0, 0);">www.dzhope.com</a></h3>
<div class="searchTool">
<form method="get" action="http://so.youku.com/search_playlist" name="headSearchForm" id="headSearchForm" onsubmit="return dosearch(this);">
     <input class="txtSearch" id="headq" name="q" value="DIV+CSS模板" type="text">
     <input name="searchdomain" value="http://so.youku.com" type="hidden">
     <input id="headSearchType" name="searchType" value="playlist" type="hidden">
     <div class="selSearch">
    <div class="nowSearch" id="headSlected" onclick="if(document.getElementById('headSel').style.display=='none'){document.getElementById('headSel').style.display='block';}else {document.getElementById('headSel').style.display='none';};return false;" onmouseout="drop_mouseout('head');">DIV模板</div>
    <div class="btnSel"><a href="#" onclick="if(document.getElementById('headSel').style.display=='none'){document.getElementById('headSel').style.display='block';}else {document.getElementById('headSel').style.display='none';};return false;" onmouseout="drop_mouseout('head');"></a></div>
    <div class="clear"></div>
    <ul class="selOption" id="headSel" style="display: none;">
     <li><a href="#" onclick="return search_show('head','video',this)" onmouseover="drop_mouseover('head');" onmouseout="drop_mouseout('head');">后台模板</a></li>
     <li><a href="#" onclick="return search_show('head','playlist',this)" onmouseover="drop_mouseover('head');" onmouseout="drop_mouseout('head');">图片图标</a></li>
     <li><a href="#" onclick="return search_show('head','user',this)" onmouseover="drop_mouseover('head');" onmouseout="drop_mouseout('head');">CSS代码</a></li>
     <li><a href="#" onclick="return search_show('head','bar',this)" onmouseover="drop_mouseover('head');" onmouseout="drop_mouseout('head');">CSS菜单</a></li>
     <li><a href="#" onclick="return search_show('head','pk',this)" onmouseover="drop_mouseover('head');" onmouseout="drop_mouseout('head');">CSS图表</a></li>
    </ul>
     </div>
     <div class="btnSearch">
    <a href="http://www.dzhope.com/" onclick="javascript:return dosearch(document.getElementById('headSearchForm'));"><span class="lbl">搜索</span></a>
     </div>
          <div class="searchExtend" id="searchExtend" name="searchExtend" style="display: none;">
           <input class="radio" name="sbt" value="post" onclick="csbt(this,this.form.sbts);" type="radio">搜贴子<input name="sbt" value="user" onclick="csbt(this,this.form.sbts);" class="radio" type="radio">按作者搜<input name="sbts" value="bar" type="hidden">
     </div>
          <div class="clear"></div>
     </form>
   </div>
   <div class="clear"></div>
  

</body></html>

黑色简易的选项卡 不指定

jed , 2012-9-7 06:50 , 代码编程 , 评论(0) , 阅读(6902) , Via 本站原创

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>黑色简易的选项卡</title>
<style>
body,ul,li{margin:0;padding:0;}
body{font:12px/1.5 Tahoma;}
#outer{width:450px;margin:10px auto;}
#tab{overflow:hidden;zoom:1;background:#000;border:1px solid #000;}
#tab li{float:left;color:#fff;height:30px;cursor:pointer;line-height:30px;list-style-type:none;padding:0 20px;}
#tab li.current{color:#000;background:#ccc;}
#content{border:1px solid #000;border-top-width:0;}
#content ul{line-height:25px;display:none;margin:0 30px;padding:10px 0;}
</style>
<script>
window.onload = function ()
{
  var oLi = document.getElementById("tab").getElementsByTagName("li");
  var oUl = document.getElementById("content").getElementsByTagName("ul");
  
  for(var i = 0; i < oLi.length; i++)
  {
    oLi[i].index = i;
    oLi[i].onmouseover = function ()
    {
      for(var n = 0; n < oLi.length; n++) oLi[n].className="";
      this.className = "current";
      for(var n = 0; n < oUl.length; n++) oUl[n].style.display = "none";
      oUl[this.index].style.display = "block"
    }  
  }
}
</script>
</head>
<body>
<div id="outer">
    <ul id="tab">
        <li class="current">第一课</li>
        <li>第二课</li>
        <li>第三课</li>
    </ul>
    <div id="content">
        <ul style="display:block;">
            <li>网页特效原理分析</li>
            <li>响应用户操作</li>
            <li>提示框效果</li>
            <li>事件驱动</li>
            <li>元素属性操作</li>
            <li>动手编写第一个JS特效</li>
            <li>引入函数</li>
            <li>网页换肤效果</li>
            <li>展开/收缩播放列表效果</li>
        </ul>
        <ul>
            <li>改变网页背景颜色</li>
            <li>函数传参</li>
            <li>高重用性函数的编写</li>
            <li>126邮箱全选效果</li>
            <li>循环及遍历操作</li>
            <li>调试器的简单使用</li>
            <li>典型循环的构成</li>
            <li>for循环配合if判断</li>
            <li>className的使用</li>
            <li>innerHTML的使用</li>
            <li>戛纳印象效果</li>
            <li>数组</li>
            <li>字符串连接</li>
        </ul>
        <ul>
            <li>JavaScript组成:ECMAScript、DOM、BOM,JavaScript兼容性来源</li>
            <li>JavaScript出现的位置、优缺点</li>
            <li>变量、类型、typeof、数据类型转换、变量作用域</li>
            <li>闭包:什么是闭包、简单应用、闭包缺点</li>
            <li>运算符:算术、赋值、关系、逻辑、其他运算符</li>
            <li>程序流程控制:判断、循环、跳出</li>
            <li>命名规范:命名规范及必要性、匈牙利命名法</li>
            <li>函数详解:函数构成、调用、事件、传参数、可变参、返回值</li>
            <li>定时器的使用:setInterval、setTimeout</li>
            <li>定时器应用:站长站导航效果</li>
            <li>定时器应用:自动播放的选项卡</li>
            <li>定时器应用:数码时钟</li>
            <li>程序调试方法</li>
        </ul>
    </div>
</div>
</body>
</html>

兼容火狐的自由展开闭合的层
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>兼容火狐的自由展开闭合的层--青蛙实战&#124;JS特效学院http://www.jsweb8.cn/</title>
<script language="javascript" type="text/javascript">
function k(vd)
{
  var ob=document.getElementById(vd);  
  if(ob.style.display=="block")
  {
     ob.style.display="none";
     var ob2=document.getElementById('s'+vd);
     ob2.style.backgroundImage="url(http://www.jsweb8.cn/jsweb8/images/jia.gif)";
  }
  else
  {
    ob.style.display="block";
    var ob2=document.getElementById('s'+vd);
    ob2.style.backgroundImage="url(http://www.jsweb8.cn/jsweb8/images/jian.gif)";
  }
}
//DESIGN BY 穿皮鞋的青蛙
//QQ:66118181
//欢迎光临JS特效学院http://www.jsweb8.cn/
</script>
<style type="text/css">
a{color: #000000;text-decoration: none;}
a:hover{color: #ff0000;text-decoration: underline;}
body{font-size:12px;}
.p{margin-left:10px;}
.content{ padding-left:20px;display:none; width:739px; background-color:#f8f8f8;border:#dedede solid 1px; height:auto; overflow:hidden; margin:4px auto; line-height:22px }
.title{cursor:pointer;background-position: 4px;line-height:25px;padding-left:20px;height:25px;width:739px;border:#dedede solid 1px;background-color:#f8f8f8;background-image: url(http://www.jsweb8.cn/jsweb8/images/jia.gif);background-repeat: no-repeat;margin:5px auto ;}
.vessel{padding: 0; width:750px; margin:0 auto}
</style>
</head>

<body >
<div class="vessel">

<div class="title" id="st1" onclick="k('t1')"><a href="#" onFocus="blur()"> [10/11/2008]第一条标题</a></div>
<div class="content" id="t1">
<p><a href="http://www.jsweb8.cn/" target="_blank">第一条内容</a></p>
<p><a href="http://www.jsweb8.cn/" target="_blank">第一条内容</a></p>
</div>
<div class="title" id="st2" onclick="k('t2')"><a href="#" onFocus="blur()"> [27/10/2008]第二条标题</a></div>
<div class="content" id="t2">
<p><a href="http://www.jsweb8.cn/" target="_blank">第二条内容</a></p><p><a href="http://www.jsweb8.cn/" target="_blank">第二条内容</a></p>
</div>
<div class="title" id="st3" onclick="k('t3')"><a href="#" onFocus="blur()"> [13/09/2008]第三条标题</a></div>
<div class="content" id="t3">
<p><a href="http://www.jsweb8.cn/" target="_blank">第三条内容</a></p>
<p><a href="http://www.jsweb8.cn/" target="_blank">第三条内容</a></p>

</div>
<div class="title" id="st4" onclick="k('t4')"><a href="#" onFocus="blur()"> [13/09/2008]第四条标题</a></div>
<div class="content" id="t4">
<p><a href="http://www.jsweb8.cn/" target="_blank">第四条内容</a></p>
<p><a href="http://www.jsweb8.cn/" target="_blank">第四条内容</a></p>

</div>

<div class="title" id="st5" onclick="k('t5')"><a href="#" onFocus="blur()">[01/10/2008]第五条标题</a></div>
<div class="content" id="t5">
<p><a href="http://www.jsweb8.cn/" target="_blank">第五条内容</a></p>
<p><a href="http://www.jsweb8.cn/" target="_blank">第五条内容</a></p>

</div>

</div>

尊重他人劳动成果,转载请注明来源<a href="http://www.jsweb8.cn/" target="_blank">JS特效学院</a>
</body>
</html>

[/coe]
分页: 5/26 第一页 上页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]