导航和打开窗口使用window.open()方法可以导航到一个特定的URL也可以打开一个新的浏览器窗口,接收4个参数:要加载的URL、窗口目标、特性字符串和一个表示新页面是否取代浏览器历史记录中当前加载页面的布尔值。通常只需要传递第一个参数,最后一个参数只在不打开新窗口的情况下使用,如果传递的第二个...
分类:
编程语言 时间:
2014-05-23 08:51:06
阅读次数:
200
1. 为什么要用接口2. 工厂方法模式1. 为什么要用接口 之前的打印机程序,
open、close、print对于惠普、佳能实际上应该都是不同的, 不同的打印机, 开机、关机、打印都应该不同
所以更靠谱的是将Printer定义为interface类型1 interface Printer{2 .....
分类:
其他好文 时间:
2014-05-22 04:50:04
阅读次数:
228
在CentOS 6.5安装MySQL
5.6.17,安装到最后一个rpm文件MySQL-server时安装命令是:rpm -ivh
MySQL-server-5.6.17-1.el6.x86_64.rpm出现了错误信息:error: Failed dependencies: libai...
分类:
数据库 时间:
2014-05-21 22:57:20
阅读次数:
779
在使用Uploadify上传文件时,提示-Failed,上传不了文件折腾中.....,没有结果.....%>_<%...于是跟踪onUploadError事件,发现errorMsg:2156
SecurityError Error #2156 nullerrorCode:250why?....---...
分类:
其他好文 时间:
2014-05-21 21:11:37
阅读次数:
498
介绍一个grid layout 顺序显示的代码
LayoutAnimation1.java
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use th...
分类:
其他好文 时间:
2014-05-21 16:58:47
阅读次数:
214
描述list layout item有上倒下依次显示的代码实现形式
LayoutAnimation2.java
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may no...
分类:
其他好文 时间:
2014-05-21 09:02:15
阅读次数:
250
介绍list item倒序显示
LayoutAnimation3.java
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e...
分类:
其他好文 时间:
2014-05-21 08:25:44
阅读次数:
278
POSIX共享内存相关函数:
shm_open函数
功能:用来创建或打开一个共享内存对象
原型
int shm_open(const char *name, int oflag, mode_t mode);
参数
name:共享内存对象的名字
oflag:与open函数类似,可以是O_RDONLY、O_RDWR,还可以按位或上O_CREAT、O_EXCL、O_T...
分类:
其他好文 时间:
2014-05-21 07:38:19
阅读次数:
324
POSIX消息队列相关函数:
mq_open函数
功能:用来创建和访问一个消息队列
原型
mqd_t mq_open(const char *name, int oflag);
mqd_t mq_open(const char *name, int oflag, mode_t mode, struct mq_attr *attr);
参数
name: 某个消息队列...
分类:
其他好文 时间:
2014-05-21 06:35:08
阅读次数:
316
mysqlreport是www.hackmysql.com开发的一款基于perl语言编写的状态报告工具。它将showstatus和showinnodbstatus的输出结果进行处理,使得输出信息的可读性更高。由于是perl编写的脚本,所以需要先安装perl环境,再与mysql数据库连接,因此还需要安装数据库接口DBI和数据库驱动D..
分类:
数据库 时间:
2014-05-20 22:57:52
阅读次数:
520