mysql> grant all privileges on *.* to cc@ '10.0.0.1 ' identified by 'password '; Query OK, 0 rows affected (0.02 sec) Read More
posted @ 2012-08-17 10:16 为啥 Views(99) Comments(0) Diggs(0) Edit
return(RedirectToAction("Index", new { message = "hi there!" })); 重新提交给Index action 需要参数 message , new { message=" 参数message 值"}public ActionResult Index(string message) { } 带 消息 重定向 消息存在tempData[] 里。[AcceptVerbs(HttpVerbs.Post)] public ActionResult Index(string submitB Read More
posted @ 2011-03-29 14:34 为啥 Views(2514) Comments(1) Diggs(0) Edit
location对象属性图示location属性hash 属性 -- 返回URL中#符号后面的内容host 属性 -- 返回域名hostname 属性 -- 返回主域名href 属性 -- 返回当前文档的完整URL或设置当前文档的URLpathname 属性 -- 返回URL中域名后的部分port 属性 -- 返回URL中的端口protocol 属性 -- 返回URL中的协议search 属性 -- 返回URL中的查询字符串assign() 函数 -- 设置当前文档的URLreplace() 函数 -- 设置当前文档的URL,并在history对象的地址列表中删除这个URLreload() 函 Read More
posted @ 2011-03-18 09:41 为啥 Views(216) Comments(0) Diggs(0) Edit
if($("input[name='radioName'][type='radio']:checked").length==0) { alert("请选择类型"); return ; } Read More
posted @ 2010-12-16 10:32 为啥 Views(226) Comments(1) Diggs(0) Edit
/*------------------------------------------------------*语言:JavaScript*说明:select元素javascript常用操作*1.判断是否存在指定value的Item*2.加入一个Item*3.删除值为value的所有Item*4.删除某一个index的选项*5.更新第index项的value和text*6.设置select中指定... Read More
posted @ 2010-06-02 15:13 为啥 Views(154) Comments(0) Diggs(0) Edit