摘要: 在jquery下 连续使用removeClass(“oldClassName”).addClass("newClassName")会出现一个问题 新增加的class名称前面会有空格,在ie8 火狐 谷歌等浏览器下是没有任何问题的,如果在IE6 IE7下则会出现不兼容的情况,造成难以查找的错误。特此记录 以为后来人 阅读全文
posted @ 2011-11-25 20:56 深海大虾 阅读(1602) 评论(0) 推荐(0)
摘要: 一大特点是JS遮罩层可以覆盖到滚动条,弊端就是如果body设置有背景 那背景是不会随着滚动条滚动的,也是一大特色 演示如下 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta 阅读全文
posted @ 2011-11-24 18:10 深海大虾 阅读(2033) 评论(1) 推荐(0)
摘要: ASP.NET 如何取得 Request URL 的各個部分我們在開發網頁應用程式,時常需要去解析網址(Request.Url)的每個片段,進行一些判斷。例如說 "http://localhost:1897/News/Press/Content.aspx/123?id=1#toc", 我們想要取得網址裡第一層目錄的名字(News)用以判斷不同的頁面標題(Page Title)。我看很多人都用字串的 IndexOf 方法與 Substring 方法:Request.Url.PathAndQuery.Substring(1, Request.Url.PathAndQuery.I 阅读全文
posted @ 2011-11-13 16:42 深海大虾 阅读(407) 评论(0) 推荐(0)
摘要: Javascript Madness IntroJavaScript Madness: Keyboard EventsJan Wolter1. IntroductionThis document summarizes the results of some browser tests done while attempting to implement key stroke handling code in JavaScript. It documents inconsistancies in the way different browsers implement keyboard even 阅读全文
posted @ 2011-11-03 17:17 深海大虾 阅读(4256) 评论(0) 推荐(0)
摘要: We came accross this problem in our application and we came up with a solution.In our case, the user control had its own presenter which also used interacted with a controller defined in the same module as the presenter. The issue was that when controllers are registered in the module Load method, t 阅读全文
posted @ 2011-10-31 23:03 深海大虾 阅读(1507) 评论(0) 推荐(1)
摘要: GET后返回XML数据, 包含原IP及归属地.此外type还可以: mobile(手机号), id(身份证). 尚未发现有限制.附录: Java通过网易API获取IP归属地.static Pattern patternLocation = Pattern.compile("<LOCATION>(.+{1,})</LOCATION>"); /** * 根据IP返回归属地. * @param ip * @return */ private static String getLocationByIP(String ip) { String location 阅读全文
posted @ 2011-10-30 11:07 深海大虾 阅读(683) 评论(0) 推荐(0)
摘要: Inserted 表用于存储 INSERT 和 UPDATE 语句所影响的行的副本。在一个插入或更新事务处理中,新建行被同时添加到 inserted 表和触发器表中。Inserted 表中的行是触发器表中新行的副本。语法返回所有列INSERT INTO [tableName] ([columnName1],[columnNameN],...) OUTPUT inserted.* VALUES ('value1','value2',...)返回指定列INSERT INTO [tableName] ([columnName1],[columnNameN],...) 阅读全文
posted @ 2011-10-26 09:01 深海大虾 阅读(877) 评论(0) 推荐(0)
摘要: /** * Ajax upload * Project page - http://valums.com/ajax-upload/ * Copyright (c) 2008 Andris Valums, http://valums.com * Licensed under the MIT license (http://valums.com/mit-license/) * Version 3.6 (26.06.2009) *//** * Changes from the previous version: * 1. Fixed minor bug where click outside the 阅读全文
posted @ 2011-08-31 17:27 深海大虾 阅读(4454) 评论(1) 推荐(0)
摘要: 使用&amp;&amp;来代替&&比如:enabled="{this.getListPageModel.event.status!=ReturnEvent.STATUS_LOADING&amp;&amp;modelDel.event.status!=ReturnEvent.STATUS_LOADING&amp;&amp;modelTrash.event.status!=ReturnEvent.STATUS_LOADING}" 阅读全文
posted @ 2011-08-30 11:36 深海大虾 阅读(191) 评论(0) 推荐(0)
摘要: SWeTE—免费为你的网站创建多国语言版本详细内容百度搜索 阅读全文
posted @ 2011-07-28 18:23 深海大虾 阅读(221) 评论(0) 推荐(0)