$.fn.image_checked = function(self,status,img_body,csrf_token){ $(this).live('click', function(){ var index = $(this).index() var img_id = $('.'+se...
分类:
Web程序 时间:
2014-07-06 22:31:18
阅读次数:
451
1:源代码#!/usr/bin/env pythonname = raw_input('请输入您的姓名:')print 'Hello,', name运行时出错:y@y:~/my_note/my_python$ python 5.py File "5.py", line 3SyntaxError:.....
分类:
编程语言 时间:
2014-07-06 21:57:42
阅读次数:
236
1>创建程序载入界面- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ //1>创建窗口 self.window = [[UIW.....
分类:
移动开发 时间:
2014-07-06 18:03:22
阅读次数:
218
SubsetsTotal Accepted:13267Total Submissions:48509My SubmissionsGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a sub...
分类:
其他好文 时间:
2014-07-06 17:50:21
阅读次数:
170
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.题目的意思是:给出一组字符串,按组返回拥有相同变位词的字符串解题思路是: ...
分类:
其他好文 时间:
2014-07-06 17:47:10
阅读次数:
210
超级好的配置centos下服务的链接 http://www.server-world.info/en/note?os=CentOS_6&p=nfs http://linux.vbird.org/linux_server/0330nfs.php 以下是NFS最显而易见的好处: 本地工作站使用更少的磁盘...
分类:
其他好文 时间:
2014-07-06 16:37:55
阅读次数:
188
expect自动远程拷贝脚本,利用rsync命令,脚本内容如下:#!/usr/bin/expect --proc Usage_Exit {self} { puts "" puts "Usage: $self ip user passwd port sourcefile d...
分类:
其他好文 时间:
2014-07-06 16:24:17
阅读次数:
333
非强制性,但是个好习惯当使用连锁赋值时很有用x=y=z=10;class Window{ public: Window& operator=(int size) { ... return *this; }}这个规则适用于 -,+, +=,-= etc
分类:
编程语言 时间:
2014-07-06 16:14:49
阅读次数:
264
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc] initW...
分类:
移动开发 时间:
2014-07-06 15:36:26
阅读次数:
366
先吐槽一下这个标题,空格略蛋疼,不像中文,但是不写空格看上去则更诡异,求解决方案……NSTimer会retain它的target,这样如果在控制器当中定义一个NSTimer,target指定为self,则会引起循环引用。解决方案和防止block引用self一样,第一步需要把NSTimer的操作封装到...
分类:
其他好文 时间:
2014-07-06 14:44:21
阅读次数:
141