function Animal(name) {
this.name = name;
}
Animal.prototype.eat = function(food) {
console.log("food");
};
Animal.prototype.getName = function()
{
return this.name;
};
var a = new An...
分类:
Web程序 时间:
2014-05-26 05:21:44
阅读次数:
345
获取crash log
如果不借助第三方框架,要收集ios app的crash log是一件很困难的事情。有2个办法:
第一个办法是要求用户打开“诊断与用量”中的自动发送,然后如果APP崩溃了,ios会弹出提示框,用户确认之后,crash log会自动发送到苹果后台,然后用开发者账号登陆上去,可以拿到crash log
第二个办法是将device,同步到iTunes之后,再从pc上拿到cra...
分类:
移动开发 时间:
2014-05-26 05:05:06
阅读次数:
315
一、常见javascript笔试题1. var a = 1; delete a;
console.log( typeof a); //number 显示生命的全局变量不能被删除 如果是 a = 1; delete a;
console.log(typeof a) //undefined; 隐式...
分类:
Web程序 时间:
2014-05-26 01:52:40
阅读次数:
571
原文链接:http://www.360doc.com/content/11/1209/09/834950_170836197.shtml场景:每周日执行一次完全备份,每天下午1点执行增量备份[
适用版本 ] MySQL 4.x – 6.x[ 配置 ]执行增量备份的前提条件是MySQL打开log-bi...
分类:
数据库 时间:
2014-05-26 01:52:20
阅读次数:
399
jQuery的serialize()方法通过序列化表单值,创建URL编码文本字符串,我们就可以选择一个或多个表单元素,也可以直接选择form将其序列化,如:First
name: Last name: $(document).ready(function(){ console.log($("f...
分类:
Web程序 时间:
2014-05-25 23:37:11
阅读次数:
388
ST
int dp[maxn][20];
int a[maxn];
void RMQ_init(int n)
{
int i,j,k;
for(i = 1; i <= n; i++)
dp[i][0] = a[i];
k = (int) (log((double)n + 0.2) / log(2.0));
for(j = 1; j <= k; j++)
for(i =...
分类:
其他好文 时间:
2014-05-25 09:45:08
阅读次数:
227
gunzip -r hongchangfirst/data
如何递归删除那些剩余的非log结尾的文件?
先列出确认一下:
find hongchangfirst/data -type f ! -name "*.log"
然后真正的删除:
find hongchangfirst/data -type f ! -name "*.log" -exec rm -f {} \;...
分类:
系统相关 时间:
2014-05-25 09:41:05
阅读次数:
694
[Info @09:03:33.737] ====================================================================[Info @09:03:33.743] Team Foundation Server Administration Log[Info @09:03:33.748] Version : 11.0.61030....
分类:
数据库 时间:
2014-05-25 09:38:58
阅读次数:
679
常用android的smali注入代码
1.增加log信息
const-string v3,"SN"
invoke-static {v3,v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2.弹出消息框
new AlertDialog.Builder(self)
.setTitl...
分类:
移动开发 时间:
2014-05-25 09:00:41
阅读次数:
324
NSArray+Log.m 1 #import "NSArray+Log.h" 2 3
@implementation NSArray (Log) 4 5 - (NSString *)descriptionWithLocale:(id)locale
6 { 7 // 遍历数组中的所有内容...
分类:
其他好文 时间:
2014-05-25 03:42:18
阅读次数:
271