一、JavaScript 中 slice 、substr 和 substring的区别:1: String.slice(start,end): 一个新的字符串。包括字符串 stringObject 从 start 开始(包括 start)到 end 结束(不包括 end)为止的所有字符.2: Str...
分类:
Web程序 时间:
2015-02-26 09:43:02
阅读次数:
174
1.loadfile——只编译,不运行loadfile故名思议,它只会加载文件,编译代码,不会运行文件里的代码。比如,我们有一个hellofile.lua文件:代码如下:print(“hello”);function hehe()print(“hello”);end这个文件里有一句代码,和一个函数。...
分类:
其他好文 时间:
2015-02-25 16:57:50
阅读次数:
144
1、netstat-n|awk‘/^tcp/{++S[$NF]}END{for(ainS)printa,S[a]}‘[root@TaoBao~]#netstat-n|awk‘/^tcp/{++S[$NF]}END{for(ainS)printa,S[a]}‘
TIME_WAIT2126
FIN_WAIT1137
FIN_WAIT21119
ESTABLISHED5956
SYN_RECV4
LAST_ACK54解析:CLOSED//无连接是活动的或正在进行LISTEN//服..
分类:
其他好文 时间:
2015-02-24 23:31:00
阅读次数:
199
print "helloworld"--1 table 做配置文件--2 table 做数据集mytable ={}mytable2={1,2,3,4,5,"ok"}--index 从1开始for i=1 ,#mytable2 do print (mytable2[i])end
分类:
其他好文 时间:
2015-02-24 23:23:35
阅读次数:
164
平衡树裸题只需要求前驱后驱treap写法const mm=1fix[t] then rt(t); end else begin insert(right[t],v); if fix[right[t]]>fix[t] then lt(t); end;end;function pre...
分类:
其他好文 时间:
2015-02-24 18:37:18
阅读次数:
129
1. ubuntu 下如何查询子集的mysql版本:方法一:登录子集的mysql之后就会显示mysql版本;***:~$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g....
分类:
数据库 时间:
2015-02-24 16:14:42
阅读次数:
244
Problem Description
The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because they become too greedy. He has decided to w...
分类:
其他好文 时间:
2015-02-24 15:10:58
阅读次数:
196
一、配置公共密钥https://help.github.com/articles/generating-ssh-keys/二、设置缓冲值(push文件较大时导致错误)\.git\config[http] postBuffer = 2428800
分类:
其他好文 时间:
2015-02-24 15:07:29
阅读次数:
147
1.定位数据区域行首行尾CTRL+home定位数据区域行首CTRL+end定位数据区域末行尾2.定位当前行、列的首尾Ctrl+方向上键到行首Ctrl+方向下键到行尾Ctrl+方向左键到行左Ctrl+方向右键到行右3.双击单元格上边线、下边线。(我最喜欢的方式)
分类:
其他好文 时间:
2015-02-24 13:54:53
阅读次数:
218
(一)成员变量的作用域(了解)直接访问:直接利用成员变量名来访问@public : 哪都可以直接访问@protected : 当前类和子类的@implementation和@end之间可以直接访问(什么都不写默认为这个)@private : 当前类的@implementation和@end之间才可以...
分类:
移动开发 时间:
2015-02-24 13:42:45
阅读次数:
172