【Jquery】上拉刷新,下拉加载

Continue Read..
参考网址 https://github.com/ximan/dropload

声明:此文系舞林cuznwww.wulinlw.org)原创稿件,转载请保留版权

【linux】svn从1.6升级到1.8

Continue Read..
步骤1
vim /etc/yum.repos.d/wandisco-svn.repo
[WandiscoSVN]
name=Wandisco SVN Repo
baseurl=http://opensource.wandisco.com/centos/$releasever/svn-1.8/RPMS/$basearch/
enabled=1
gpgcheck=0

步骤2
yum remove subversion*

步骤3
 yum clean all
 yum install subversion
 
 查看 svn 版本
 svn --version
 
 
 svn 升级到1.8 以后  在项目所在的根目录 执行
 svn upgrade  就OK了
 
 chmod -R go-rwx .svn/


<Directory ~ "\.svn">

Order allow,deny

Deny from all

</Directory>



location ^~ /.svn/{

deny all;

}

声明:此文系舞林cuznwww.wulinlw.org)原创稿件,转载请保留版权

sublime text 3 的 package control错误

Continue Read..

今天在mac安装sublime text 3 的 package control后,点击就出现“There are no packages available for installation”,

百度上各种解答,都是抄袭的同一个帖子,说是IPV6的问题,需要绑定host

还专门说明了是从高大上的http://stackoverflow.com/ 看来的哦

不明真相的小朋友纷纷转载,然而我试了下不行呀

用google搜索了下,马上就找到了原帖

http://stackoverflow.com/questions/25105139/sublime-text-2-there-are-no-packages-available-for-installation

这下欢乐了,在那个错误的答案下package control的作者wbond现身说法

 

Please do not do this. Since I wrote Package Control and run the server, I can tell you this is a brittle solution that will break. In fact, the URL and IP for the server are changing soon. Instead, use the latest version fromgithub.com/wbond/package_control. If you still have trouble, post an issue with a debug log.


23333333333333333333333333


现在说下怎么解决吧

https://github.com/wbond/package_control/issues/957

这里说了一种方法

You can delete the Package Control.system-ca-bundle and Package Control.merged-ca-bundle files and try installing a package again. This will regenerate the system one and then merge with your user ca bundle.


删掉package control下面的Package Control.system-ca-bundle  和 Package Control.merged-ca-bundle

重启在试就好了

 

另一种解决方案就是重装package control,从官网复制安装代码哦

 

出现这个问题的原因可能是安装package control的代码有问题,最好是直接从官网复制安装代码,因为作者会随时调整

官网地址https://packagecontrol.io/installation




声明:此文系舞林cuznwww.wulinlw.org)原创稿件,转载请保留版权

【YII2】跨Controller调用action

Continue Read..

比如我有A,B2个Controller  同时又actionIndex方法  我想用A调用B的方法 

$xx = new BController('b', $this->module);

$xx ->actionIndex();die;

声明:此文系舞林cuznwww.wulinlw.org)原创稿件,转载请保留版权

jquery 响应浏览器地址栏#(hash/fragment)变化

Continue Read..
historyWatcher = function() {
   var timer, last;
   return {
    // 每100毫秒判断一次hash的值是否改变,如果改变就执行内部回调函数
       register: function(fn, thisObj) {
           if(typeof fn !== 'function') return;
           timer = window.setInterval(function() {
               if(fn && location.hash !== last) {
                   last = location.hash;
                   fn.call(thisObj || window, last);
               }
           }, 100);
       },
       // 停止100毫秒定时器
       stop: function() {
           timer && window.clearInterval(timer);
       },
       // 设置新的hash值
       set: function(newHash) {
           last = newHash;
           location.hash = newHash;
       }
   };
}();

function loaddata(obj2){
$("div.main-content").load(obj2.split('#')[1]+'.html');
}

// function sidebarChange(obj1,obj2){
// $('.submenu li').attr('class','');
// $(obj1).parent().attr('class','active');
// if(obj2!=''){
// $("div.main-content").load(obj2);
// }
// }

var initContent='';

function sidebarChange(obj1,obj2){
$('.submenu li').attr('class','');
$(obj1).parent().attr('class','active');
if(obj2!=''){
historyWatcher.register(loaddata)
}
}

window.onload = function (){
historyWatcher.register(loaddata);
}

声明:此文系舞林cuznwww.wulinlw.org)原创稿件,转载请保留版权