"; // mysql_select_db("_blog"); $query_test="select *from _blog_"; $result_q=mysql_query($query_test); ...
分类:
Web程序 时间:
2014-06-19 00:10:32
阅读次数:
285
class TestCase: def run(self, result=None): if result is None: result=self.defaultTestResult() result.startTest(self) t...
分类:
其他好文 时间:
2014-06-18 23:51:59
阅读次数:
355
有时在编写struts.xml时会报错,但是找不出有什么她方有问题。也能正常运行MyEclipse有地方去struts的xml进行了验证,经查找把这里的build去掉就可以了
分类:
系统相关 时间:
2014-06-18 16:30:42
阅读次数:
281
1.Firefox之firebug调试js,可用id搜索,打断点调试。2.js中的||和&& a.逻辑运算符逻辑或运算符 (||)result = expression1 || expression2;两表达式有或两等于 True则 result True见http://itworktor.bl.....
分类:
Web程序 时间:
2014-06-18 16:16:55
阅读次数:
299
public static String[] split(String str, String limit) { List result = new ArrayList(); char[] chars = limit.toCharArray(); ...
分类:
其他好文 时间:
2014-06-18 16:01:29
阅读次数:
216
[HttpPost]public HttpResponseMessage Upload(){string json = "{\"result\":\"true\"}";return new HttpResponseMessage { Content = new StringContent(json,...
A Memoization Pattern is a kind of JavaScript Pattern you can use to cache the result of a function with the arguments of the function as the key of t...
分类:
编程语言 时间:
2014-06-18 13:17:25
阅读次数:
401
1 $.ajax({ 2 url:"result.php", 3 //data:{"page":i}, 4 dataType:"json", 5 beforeSend:f...
分类:
Web程序 时间:
2014-06-18 13:10:08
阅读次数:
1207
Bash
开头#!/bin/bash。echo
语句屏蔽
“
”
若使用则 \” \”
。
即使文件没有执行权限,仍然可以通过bashhello.sh
或者 sh hello.sh来执行文件。
标准输出写入>>文件中,标准错误输出默认为屏幕。标准错误输出为2>>。错误和输出都写入文件:1>>log
2>>err。两者都写入同一个文件:>&all_result,>
...
分类:
系统相关 时间:
2014-06-17 16:29:35
阅读次数:
359
linux:禁pingvim/proc/sys/net/ipv4/icmp_echo_ignore_all0代表允许1代表禁止ping.sh#!/bin/bash
foriin{2..5};
do
host=122.152.172.$i
ping-c2$host>/dev/null
if[$?=0]
then
echo"122.152.172.$iisconnected"
else
echo"122.152.172.$iisnotconnected"
fi
done显示结果..
分类:
其他好文 时间:
2014-06-16 15:37:33
阅读次数:
235