控制器controller下的welcome.phppublicfunctiondoJson(){
$data=array(‘a‘,‘b‘,‘c‘,‘d‘);
if($_POST[‘k‘])
echo$data=json_encode($data);
}视图view下的json.php<!DOCTYPEHTML>
<html>
<head>
<scriptsrc="<?phpechobase_url();?>static/js/jqu..
分类:
Web程序 时间:
2014-07-29 15:57:59
阅读次数:
266
AJAX=AsynchronousJavaScriptandXML(异步的JavaScript和XML)。ajax作用:在不刷新整个页面情况下,更新部分网页ajax实质:ajax全部的工作都由一个对象来做,XMLHttpRequest对像(简写xmlhttp)先给一个简单的使用xmlhttp来发送ajax请求的例子<html><head><scrip..
分类:
其他好文 时间:
2014-07-29 15:56:49
阅读次数:
201
1.静态的秒数跳转<scriptlanguage="JavaScript1.2"type="text/javascript"><!--//Placethisinthe‘head‘sectionofyourpage.//url要跳转的页面time等待时间,单位为毫秒。functiondelayURL(url,time){setTimeout("top.location.href=‘"+url+"‘",time);}//--></scr..
分类:
编程语言 时间:
2014-07-29 15:39:19
阅读次数:
252
背景:今天在静默安装oracle,在命令行里面下达了命令./runInstaller-silent-responseFile/oracle/database/response/db_install.rsp结果没有什么安装进度,只是提示可以从/u01/app/oraInventory/logs/installActions.....log里面可以查到结果--->看到这里我就想到了在linux..
分类:
系统相关 时间:
2014-07-29 15:36:19
阅读次数:
246
<!DOCTYPEhtml>
<htmllang="en">
<head>
<metacharset="UTF-8">
<title>ajax</title>
<script>
/**
*onreadystatechange每次状态改变所触发事件的事件处理程序。
*responseText从服务器进程返回数据的字符串形式。
*responseXML..
分类:
其他好文 时间:
2014-07-29 15:30:29
阅读次数:
223
#include
#include
#include
#define MAXN 5000+5
#define MAXM 200+5
typedef struct Dic{
char str[MAXN];
struct Dic* next;
}Dic;
Dic *head;
char word[MAXM];
int cnt=0;
int get_word();
void conver...
分类:
其他好文 时间:
2014-07-29 14:55:28
阅读次数:
156
Jungle Roads
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 19064
Accepted: 8702
Description
The Head Elder of the tropical island of Lagrishan has a ...
分类:
其他好文 时间:
2014-07-29 14:36:00
阅读次数:
229
代码如下: 1 template int binarySearch(const T* pt, int n, T t) 2 3 { 4 int head = 0, tail = n-1; 5 int i; 6 while (tail >= head) 7 { 8 i = (head +...
分类:
其他好文 时间:
2014-07-29 10:42:46
阅读次数:
214
meta是html语言head区的一个辅助性标签。几乎所有的网页里,我们可以看到类似下面这段的html代码:<head><meta http-equiv="content-Type" content="text/html; charset=gb2312"></head> 也许你认为这些代码可有可无。...
分类:
其他好文 时间:
2014-07-29 10:34:36
阅读次数:
268
1) 检查当前僵尸进程信息# ps -ef | grep defunct | grep -v grep | wc -l175# top | head -2top - 15:05:54 up 97 days, 23:49, 4 users, load average: 0.66, 0.45, 0.39...
分类:
系统相关 时间:
2014-07-29 10:33:06
阅读次数:
363