码迷,mamicode.com
首页 >  
搜索关键字:tom    ( 8124个结果
汤姆猫代码实现
//// ViewController.m// Tom//// Created by administrator on 15/8/4.// Copyright (c) 2015年 gengcong. All rights reserved.// #import "ViewController...
分类:其他好文   时间:2015-08-16 10:32:27    阅读次数:114
facl:文件访问控制列表
假如我们有两个用户:tomandjerry,我们用tom建立一个文件,想让jerry也可以访问,那我们一般会给这个文件的其它人权限,但是一但给了其它人权限,那不权jerry可以访问,其它用户也可以访问,这样是不合理不安全的。根据上述情况,我们就要引入文件访问控制列表了。facl:filesy..
分类:其他好文   时间:2015-08-16 00:47:53    阅读次数:167
Objective-C:保留计数器思想的详解(对象的保留和所有权的释放)
对象的保留和所有权的释放:int main(int agrs,char *argv[]){ @autoreleasepool{ Person *person = [[Person alloc]initWithName:@“Tom"]; //retainCount=1 ...
分类:其他好文   时间:2015-08-14 21:02:16    阅读次数:95
Num 36 : ZOJ 2100 [ 深度优先搜索算法 ] [ 回溯 ]
该题是用回溯法来解决的题: 题目: Seeding Time Limit: 2 Seconds      Memory Limit: 65536 KB It is spring time and farmers have to plant seeds in the field. Tom has a nice field,which is a rectangle wit...
分类:编程语言   时间:2015-08-14 15:48:36    阅读次数:130
解题报告 之 HDU5289 Assignment
解题报告 之 HDU5289 Assignment Description Tom owns a company and he is the boss. There are n staffs which are numbered from 1 to n in this company, and every staff has a ability. Now, Tom is going to assign a special task to some staffs who were in the same g...
分类:其他好文   时间:2015-08-13 15:54:37    阅读次数:122
textArea剩余字数统计插件
效果如: js代码: /** * textArea字数统计 * * Created on : 2015-6-26, 11:49:24 * Author : tom lyl010991@126.com */ var wordTool = { /** * 初始化 * * @param json json数组格式,如[{id:"ne...
分类:其他好文   时间:2015-08-13 12:10:19    阅读次数:287
JavaScript笔记
1、delete操作符|--删除动态删除对象的属性,节省内存的使用var obj = {};obj.name = 'Tom';alert(obj.name);delete obj.name;alert(obj.name);2、变量|--通过var进行申明;使用var关键字进行定义的是局部变量,不使用...
分类:编程语言   时间:2015-08-08 16:26:49    阅读次数:144
tom启动报错:org.xml.sax.SAXParseException: Content is not allowed in prolog.
警告:Catalina.startusingconf/server.xml:org.xml.sax.SAXParseException:Contentisnotallowedinprolog.atcom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)atcom.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA..
分类:其他好文   时间:2015-08-07 16:34:06    阅读次数:206
js 关于在子类构造函数中加入call(this)的用意!
先上例子: function Animal(a,b) { this.a = a; this.b = b; } function Dog(c) { //Animal.call(this);//注释 } Dog.prototype = new Animal(); Dog.prototype.constructor = Dog; var dog1 = new Dog('tom'); co...
分类:Web程序   时间:2015-08-07 11:16:34    阅读次数:140
精通Hibernate——Java对象在JVM中的生命周期
当应用程序通过new语句创建一个对象时,JVM会为这个对象分配一块内存空间,只要这个对象被引用变量引用,他就一直存在在内存当中。当这个对象不被任何对象引用的时候,他的生命周期就意味着结束,JVM会在适当的时候回收这个对象。下面通过代码来演示下生命周期:Customer c = new Customer("Tom",new HashSet()); Order o1 = new Order("Tom_o...
分类:编程语言   时间:2015-08-05 20:28:33    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!