博客园站长
这是人类成长进步中记录的每一时刻
05 2012 档案
(转)js全页面刷新方法
摘要:下面介绍全页面刷新方法:有时候可能会用到window.location.reload()刷新当前页面.parent.location.reload()刷新父亲对象(用于框架)opener.location.reload()刷新父窗口对象(用于单开窗口)top.location.reload()刷新最顶端对象(用于多开窗口)如果是模式窗口,关闭并刷新父窗口:function saveClose(){ //刷新父窗口window.dialogArguments.location.href=window.dialogArguments.location.href; //关闭自身 __close(); 阅读全文
posted @ 2012-05-31 09:34 dm3344 阅读(287) 评论(0) 推荐(0) 编辑
Flex取xml文件中的值
摘要:var xml:XML = XML(你的xml数据)xml.students.student.stuName[0] //返回 张三xml.children().children().stuName[0] //返回 张三 阅读全文
posted @ 2012-05-30 09:58 dm3344 阅读(230) 评论(0) 推荐(0) 编辑
js 弹出新页面
摘要:var windowOption = "width=1000,height=" + "500" + "+top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no"; window.open('http://www.baidu.com', 'newwindow', windowOption) 阅读全文
posted @ 2012-05-28 14:22 dm3344 阅读(303) 评论(0) 推荐(0) 编辑
JS 与 后台如何获取 Cookies
摘要:js里面这样写:function getCookie() { var search = "RH.RHR" + "=" if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset) if (end == -1) end = docum... 阅读全文
posted @ 2012-05-25 11:08 dm3344 阅读(276) 评论(0) 推荐(0) 编辑
(转)ASP.NET MVC VS2010中更改默认调试浏览器
摘要:原文地址:http://blog.csdn.net/hyugahinat/article/details/7532898In Visual Studio 2010 (RC) there is no longer a "browse with" context menu when right clicking .aspx pages. How can you change the default browser now?By default it seems to use the operating system default browser, but I would pr 阅读全文
posted @ 2012-05-25 09:15 dm3344 阅读(2223) 评论(0) 推荐(0) 编辑
js 实现树效果
摘要:<html><head><title>phpTree</title><style>body{margin:0px;}#dragDiv{position:absolute;display:none;background-color:#3366cc;color:#ffffff;}.title{border:0px;font-size:16px;}.node{padding-left:20px;overflow:hidden;}.icon{display:inline;margin-right:5px;cursor:pointer;}< 阅读全文
posted @ 2012-05-21 15:50 dm3344 阅读(2635) 评论(0) 推荐(0) 编辑
oracle相关时间计算,得到季度第一天、最后一天
摘要:------------------------------------------------ Oracle 日期-------------------------------------------- 本季度第一天SELECT to_char(TRUNC(SYSDATE, 'Q'), 'YYYY-MM-DD') FROM dual;-- 上个季度最后一天(可以用本季度第一天减去1得到)SELECT to_char(TRUNC(SYSDATE, 'Q') - 1, 'YYYY-MM-DD') FROM dual;-- 上个季度第 阅读全文
posted @ 2012-05-18 15:41 dm3344 阅读(16477) 评论(0) 推荐(1) 编辑
mvc filter 的用法
摘要:1、建个类在model里面名字随便using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using RHRSP.Web.Controllers.Common;namespace RHRSP.Web.Models{ public class DemoActionAttributeFilter : ActionFilterAttribute { public string Message { get; set; } ... 阅读全文
posted @ 2012-05-17 14:08 dm3344 阅读(1683) 评论(0) 推荐(0) 编辑
ihttpmodule 接口以及使用
摘要:我用的是mvc的1、在model写个类VerificationModule.cs (名字随便啊)using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using System.Data;using System.Collections;using RHRSP.Web.Models;using System.Xml;using RHRSP.Web.Controllers.Common;using System.IO;using System.Ref 阅读全文
posted @ 2012-05-17 11:58 dm3344 阅读(500) 评论(0) 推荐(0) 编辑
post和get的区别?
摘要:1. get是从服务器上获取数据,post是向服务器传送数据。2. get是把参数数据队列加到提交表单的ACTION属性所指的URL中,值和表单内各个字段一一对应,在URL中可以看到。post是通过HTTP post机制,将表单内各个字段与其内容放置在HTML HEADER内一起传送到ACTION属性所指的URL地址。用户看不到这个过程。3. 对于get方式,服务器端用Request.QueryString获取变量的值,对于post方式,服务器端用Request.Form获取提交的数据。4. get传送的数据量较小,不能大于2KB。post传送的数据量较大,一般被默认为不受限制。但理论上,II 阅读全文
posted @ 2012-05-10 10:50 dm3344 阅读(333) 评论(0) 推荐(0) 编辑
dataset转json的类
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Text;using System.Reflection;using System.Collections;using System.Data;using System.Data.Common;/// <summary>/// Summary description for FormatToJson/// </summary>public class FormatToJson{ pub 阅读全文
posted @ 2012-05-09 11:54 dm3344 阅读(7309) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示