修改 '/etc/NetworkManager/NetworkManager.conf', 将 'managed=false' 修改为 'managed=true'修改 '/etc/network/interfaces', 在文件末尾添加有线网卡配置auto eth0iface eth0 inet ...
分类:
Web程序 时间:
2014-06-17 00:01:50
阅读次数:
296
01.在服务端创建zabbix组configuration---Templates---createtemplate---TemplateLinux
DiskIO===其中选择组为"Template"在TemplateLinuxDiskIO中创建Discoveryrule:Name:Diskdevice
discovery
Key:custom.vfs.dev.discovery
FilterMacro{#DISK}Regexp@Disk
devicefordiscover..
分类:
其他好文 时间:
2014-06-16 17:00:42
阅读次数:
543
document.queryCommandEnabled(commandID):确定命令是否已经激活。
3、document.queryCommandIndeterm(commandID):确定命令是否是不确定的。
4、document.queryCommandState(commandID):确定命令的状态
5、document.queryCommandSupported(commandID):确定命令是否被支持,返回true或false
6...
分类:
编程语言 时间:
2014-06-16 14:24:46
阅读次数:
163
1 Ext.require('Ext.TabPanel'); 2 Ext.application({ 3 name: 'MyApp', 4 icon: 'images/icon.png', 5 glossOnIcon: false, 6 tabletStartupS...
分类:
其他好文 时间:
2014-06-15 21:38:19
阅读次数:
213
HTML5事件contextmenu事件contextmenu事件是冒泡的,可以将事件处理程序指定到document,这个事件的目标是用户操作的元素,在兼容DOM的浏览器中使用event.preventDefalut()取消默认行为,在IE中将event.returnValue的值设置为false取...
分类:
编程语言 时间:
2014-06-15 16:50:52
阅读次数:
299
int.TryParse与 int.Parse 的区别是,int.TryParse不会产生异常,转换成功返回 true,转换失败返回 false。最后一个参数为输出值,如果转换失败,输出值为 0。用法int a=0;bool Result = int.TryParse("100",a)
分类:
其他好文 时间:
2014-06-15 16:05:38
阅读次数:
149
File 类
File.OpenWrite 方法
StringWriter 类
File.open
//using (StreamWriter sw2 = File.CreateText(cmdFile))
using (StreamWriter sw2 = new StreamWriter(cmdFile,false, Encoding.Default)) /...
分类:
其他好文 时间:
2014-06-15 14:27:03
阅读次数:
276
使用easyui实现列表的批量删除 首先要做的就是添加一个多选框 //就是这个,多选框在列表的配置选项中 添加一个singleSelect:false, 把true改为false 意思就是能够多选然后就是要在列表中接收值了,原来单个删除时接收一个值,如今要接收一个数组代码:// 删除操作button...
分类:
其他好文 时间:
2014-06-15 12:44:29
阅读次数:
215
判断一个用户是否登录非常简单,使用 Yii::app()->user->isGuest 即可. 若使用持久存储如 session (默认地) 和/或 cookie (下面讨论) 来存储身份信息, 用户在随后的请求中保持已登录状态. 这样,我们无需为每次请求使用 UserIdentity 类和完整的登录验证. CWebUser 将自动从持久存储中载入身份信息,用它们来检测Yii::app()->user->isGuest 返回的是 true 还是 false....
分类:
其他好文 时间:
2014-06-14 17:50:15
阅读次数:
233
数组的恒等 === 在文档中是这么说的:
Check whether two arrays or subarrays share the same storage and elements by comparing them with the identity operators (=== and !==).
数组的恒等 === 判断即判断两个数组所指向的元素存储区是否相同。
但 XCode 6 测试下来,结果大为迥异:var a = [1, 2, 3]; a === a 其结果却为 false,...
分类:
其他好文 时间:
2014-06-14 11:39:39
阅读次数:
280