直接上代码publicclassMainActivityextendsActivity{
privateinttitle=0;
privateHandlerhandler=newHandler(){
publicvoidhandleMessage(Messagemsg){
switch(msg.what){
case1:
updateTitle();
break;
}
};
};
@Override
protectedvoidonCreate(BundlesavedInstanceState..
分类:
移动开发 时间:
2015-02-28 16:44:22
阅读次数:
158
1.用户切换su:switch usersu kevin//半切换,切换到kevin用户,但是不读取kevin用户的配置文件su - kevin//完全切换,执行这个命令的时候表示切换到kevin用户,并且重新读取用户环境相关配置文件clear/*清屏*/2.pwdpwd //printing wo...
分类:
其他好文 时间:
2015-02-28 12:48:14
阅读次数:
563
#include
int main()
{
int year, month, flag = 0;
printf("Enter Year And Month:!\n");
scanf("%d %d", &year, &month);
if(year % 4 ==0 && year % 100 != 0 || year % 400 ==0)
{
flag = 1;
printf("...
分类:
其他好文 时间:
2015-02-27 20:18:34
阅读次数:
752
在JDK1.6的版本中,switch后面的括号里面只能放int类型的值,注意是只能放int类型, ? 但是放byte,short,char类型的也可以。 ? 是因为byte,short,shar可以自动提升(自动类型转换)为int。 ? 而不能放lon...
分类:
其他好文 时间:
2015-02-27 15:18:56
阅读次数:
162
本文为转发,简单明了,我喜欢VLAN典型配置全过程如下:组网图图1-1 基于端口的VLAN组网示意图应用要求如图1-1所示,Switch A和Switch B分别连接了不同部门使用的Host1/Host2和Server1/Server2。为保证部门间数据的二层隔离,现要求将Host1和Server1...
分类:
其他好文 时间:
2015-02-27 14:53:54
阅读次数:
189
bootstrap switch是一个按钮开关,点击时获取其状态可通过以下代码:1 1 $('#email_switch_state').on({ 2 'switchChange.bootstrapSwitch': function(event, state) { ...
分类:
其他好文 时间:
2015-02-27 11:47:10
阅读次数:
639
一:在数据的添加时一般注意的方法在主从表中的添加方法中,在datapilot中的onSubControlAction(self.arg)中的代码是: var code = arg.code; switch(code){ case "+": //得到主表的数据集对象 var dataSetDept ....
分类:
其他好文 时间:
2015-02-27 11:23:59
阅读次数:
452
主要讲解1.3后的一些新功能,和一些以前没有介绍的小功能 (ng-if,ng-switch).1.one way bind 这个之前的版本已经有人自己实现了,但是在1.3之后,angularjs 有自带的了。用法极其简单 . {{ ::value }}看到吗 ?只是把从前的 {{ value ...
分类:
Web程序 时间:
2015-02-25 10:20:02
阅读次数:
225
虚拟文件系统(Virtual Filesystem)也可称之为虚拟文件系统转换(Virtual Filesystem Switch),是一个内核软件层,用来处理与Unix标准文件系统相关的全部系统调用。其健壮性表如今能为各种文件系统提供一个通用的接口。通用文件系统模型 VFS所隐含的主要思想在于引....
分类:
系统相关 时间:
2015-02-24 18:36:24
阅读次数:
209