12 2008 档案
Linux下用PYTHON查找同名进程
摘要:1.可执行程序 os.system('pgrep %s > %s' % (process, output)) pidfile = open("output", 'r') totalpid = len(pidfile.readlines()) pidfile.close() if totalpid == 0 : ... 阅读全文
posted @ 2008-12-26 09:56 凌度 阅读(2832) 评论(0) 推荐(0)
OnClientClick的window.confirm无效
摘要:默认写法: OnClientClick="return window.confirm('确认吗?')" 只要改成: OnClientClick="if(!window.confirm('确认吗?')){event.returnValue = false;}" 即可 阅读全文
posted @ 2008-12-19 09:37 凌度 阅读(674) 评论(1) 推荐(0)