这是一个JSP页面:Java代码现在时间:转译后生成的servlet,对应的body中,有以下代码:Java代码out.write("现在时间:\n");out.print(newDate());思考:表达式代表的是什么? 为什么 new Date()后,没有 “;”(分号)?servlet中,ou...
分类:
其他好文 时间:
2014-08-22 10:29:55
阅读次数:
200
映射网络路径:1 $net = New-Object -com WScript.Network2 $drive = "Z:"3 $path = "\\$ip\D$"4 $net.mapnetworkdrive($drive, $path, $true, $username, $password)
分类:
其他好文 时间:
2014-08-22 10:28:15
阅读次数:
190
一、扩展卷组扩展卷组相对简单,只需要添加一个物理卷即可,使用的命令是vgextend,其格式为:vgextendVG_NAME/PATH/TO/PV下面来演示一下扩展卷组的过程:1.首先准备一块id号位8e的分区,具体过程见前文。[root@localhost~]#fdisk/dev/sdcWARNING:DOS-compatiblemodeisdeprecat..
分类:
其他好文 时间:
2014-08-22 02:50:06
阅读次数:
544
Problem:Century Artshas hundreds of art galleries scattered all around the country and you are hired to write a program that determines whether any of...
分类:
其他好文 时间:
2014-08-22 01:34:25
阅读次数:
240
js脚本会阻塞页面其他资源的下载,直到其下载、解析、执行完毕。因为浏览器需要1个稳定的DOM树结构,而JS中很有可能有代码直接改变了DOM树结构,比如使用 document.write 或 appendChild,甚至是直接使用的location.href进行跳转,浏览器为了防止出现JS修改DOM树...
分类:
其他好文 时间:
2014-08-22 01:30:25
阅读次数:
203
报错:Program bash is not found in PATH(如果按照我的方法来的话是没有这个错误的,我之前用别的方法的时候有但是后来还是没解决,写出来放到这里做参考吧)参考原文:http://blog.csdn.net/fuyongbing1986/article/details/11...
分类:
移动开发 时间:
2014-08-21 22:28:24
阅读次数:
302
document.write(navigator.userAgent);document.write('');document.write(navigator.platform);var client = function(){//引擎 var engine = { ie:fal...
分类:
其他好文 时间:
2014-08-21 22:23:24
阅读次数:
237
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below....
分类:
其他好文 时间:
2014-08-21 21:11:24
阅读次数:
213
SELECT t.PROB_ID, STUFF((SELECT ',' + s.NOTESFROM gpcomp1.GPPROBNOTES sWHERE s.PROB_ID = t.PROB_IDFOR XML PATH('')),1,1,'') AS NOTESFROM gpcomp1.GPPRO...
分类:
其他好文 时间:
2014-08-21 21:00:04
阅读次数:
174
1. 看手册的例子说的 very good 在删除目录 和 遍历目录的时候要注意了,应该很少人把名字取为0吧。// 正确的遍历目录的方法while(false !==( $file= readdir($file_path) ) ){}//错误的遍历目录的方法while($file=readdir($...
分类:
其他好文 时间:
2014-08-21 20:54:24
阅读次数:
185