ITperson

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年4月20日

摘要: <script>var srcArray = [1,2,3,4,5,6,7,];if (!Array.prototype.shuffle) { Array.prototype.shuffle = function() { for(var j, x, i = this.length; i; j = parseInt(Math.random() * i), x = this[--i], this[i] = this[j], this[j] = x); return this; };srcArray.shuffle();</script> 阅读全文
posted @ 2013-04-20 13:27 ITperson 阅读(158) 评论(0) 推荐(0)

2013年4月12日

摘要: public class ReadfileServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // 1.txt没有发布,所以不能访问 String filename3 = "/3.txt"; filename3 = this.getServletContext().getRealPath(filename3); String filenam 阅读全文
posted @ 2013-04-12 11:18 ITperson 阅读(368) 评论(0) 推荐(0)