declare @a nvarchar(100) set @a='大' select patindex('%[^吖-做]%',@a) set @a='aaa' select patindex('%[^吖-做]%',@a)
注:好久没写了,今天把我在公司内网写的文章拷一份,出来露露脸,刚转Web开发,所以开始学javascript! 在引入命名空间之前,一个令开发人员头疼的问题就是如何防止函数名/类名和其他人的冲突,在一个公司内部项目组之间可以通过命名预定(比如加前缀等)解决这个问题,但是把视线放到整个软件开发领域,在当今协作开发相当盛行的时代,这个问题却依然存在。在使用多个第三方框架或类库的时候,你唯一能作的就是祈祷它们的命名不要冲突,如果真正发生这种灾难的话,你唯一能作的就是放弃其中一个(注:可能是我孤陋寡闻,呵呵)。命名空间的引入相当程度上解决了这个问题,当然,如果你使用的命名空间和其他公司不幸一样,而对方 ...
  • 15:34
  • 浏览 (18)
  • 评论 (0)
  • 分类: js
document.getElementById('a').style.background = '#fff url(http://www.jctrans.com/images/topimg/hot.gif) left no-repeat'; document.getElementById('a').style.color = '#996699';
  • 15:40
  • 浏览 (15)
  • 评论 (0)
  • 分类: js
using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.IO; publ ...
  • 22:22
  • 浏览 (28)
  • 评论 (0)
  • 分类: c#
parent.htm <script> var obj = new Object(); obj.name="51js"; window.showModalDialog("modal.htm",obj,"dialogWidth=200px;dialogHeight=100px"); </script> modal.htm <script> var obj = window.dialogArguments alert("您传递的参数为:" + obj.name) </script> ------------------------------- 2.可以通过window.r ...
  • 10:56
  • 浏览 (45)
  • 评论 (0)
  • 分类: js
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>EffectAssembledTest.html</title> <script type="text/javascript" src="prototype.js"></script> <script ty ...
  • 15:37
  • 浏览 (78)
  • 评论 (0)
  • 分类: js
2008-04-20

prototype

prototype 1.3.1 版本和之前的 1.2.0 版本有了不少改进,并增加了新的功能: 1. 增加了事件注册管理 2. 增加了空间定位的常用函数 3. 改善了 xmlhttp 的封装 4. 移除了 Effect.js,交给 Rico 或者 script.aculo.us 这些扩展库类实现。 5. bug 修复 代码: /** * 定义一个全局对象, 属性 Version 在发布的时候会替换为当前版本号 */ var Prototype = { Version: '1.3.1', // 一个空方法,其后的代码常会用到,先前的版本该方法被定义于 Ajax 类中。 emp ...
  • 22:30
  • 浏览 (94)
  • 评论 (0)
  • 分类: js
//mhHover('起始ID名称','第 X 个TD标签','样式名称') 程序代码 function mhHover(tbl,idx,cls){ var t,d; if(document.getElementById)t=document.getElementById(tbl); else t=document.all(tbl); if(t==null)return; if(t.getElementsByTagName)d=t.getElementsByTagName("TD"); else d=t.all.tags("TD"); if(d==null)return; if(d.le ...
  • 14:37
  • 浏览 (71)
  • 评论 (0)
  • 分类: js
<a href="javascript:void(document.forms[0].submit())" onclick="return SaveData()" value="test"> if(checkAll()==0 && checkLineBaseInfo() == 0) { if(document.getElementById('hidFreightId').value != null && document.getElementById('hidFreightId').value != '') { ...
  • 11:46
  • 浏览 (100)
  • 评论 (0)
  • 分类: js
rails projectname -d mysql gem install sqlite3-ruby This cookie-based session store is the Rails default. Sessions typically contain at most a user_id and flash message; both fit within the 4K cookie size limit. Cookie-based sessions are dramatically faster than the alternatives. If you ...
  • 23:31
  • 浏览 (93)
  • 评论 (0)
wolfmaster
搜索本博客
最近加入圈子
存档
最新评论