yjiang's cake

Android 4.0 一卡多号切换菜单

自从安卓4.0以后找不到SIM卡工具包了,翻阅N多帖子,终于找到解决方法,mark

设置->安全->锁屏->启用PIN码解锁;这样,SIM卡工具包就出来了,麻烦!

git log

git log xxxx.... files 		//显示commit号xxxx以后的files文件夹下的提交
git log --stat 			//显示在每个提交(commit)中哪些文件被修改了, 分别添加或删除了多少行
git log --pretty		//按要求格式化日志	example:	git log --pretty=online

git log --pretty=format:'%h %an %s'    //格式化log显示
选项    说明
%H      提交对象(commit)的完整哈希字串
%h      提交对象的简短哈希字串
%T      树对象(tree)的完整哈希字串
%t      树对象的简短哈希字串
%P      父对象(parent)的完整哈希字串
%p      父对象的简短哈希字串
%an     作者(author)的名字
%ae     作者的电子邮件地址
%ad     作者修订日期(可以用 -date= 选项定制格式)
%ar     作者修订日期,按多久以前的方式显示
%cn     提交者(committer)的名字
%ce     提交者的电子邮件地址
%cd     提交日期
%cr     提交日期,按多久以前的方式显示
%s      提交说明

jquery提交状态等待效果

$.ajax({
		type		:	"POST",
		url			:	postUrl,
		data		:	data,
		beforeSend	:	function(){
			$('.'+type+'_watting').show();
			errMsg.text(' 正在绑定..');
		},
		success		:	function(result){
			console.log(result);
			$('.'+type+'_watting').hide();
			errMsg.text(result.err_msg);
			if (result.result == 'false'){
				$("#con_submit").hide();
			}
			else{
				$("#con_submit").show();
			}
		}
	});

beforeSend属性可实现此效果
 

PHPRPC模式在 php5.4版本下报错问题

Fatal error: Cannot redeclare gzdecode() /beartech/phprpc/compat.php on line 181

因为php5.4已经自带了gzdecode函数,所以导致了此冲突;使用

if(!function_exists('gzdecode')){
}

包含phprpc的函数即可.

Copyright © 2016 yjiang's cake

返回顶部