2012年12月12日

js去掉字符串中最后一个字符或字符串

摘要: names = names.replace(/,$/, "");names = names.replace(/xxxx$/, ""); xxxx字符串 阅读全文

posted @ 2012-12-12 10:43 哼哼小虾米 阅读(226) 评论(0) 推荐(0)

2012年11月22日

js 页面加载完成之后调到锚点

摘要: //抛锚 页面加载完成之后调到锚点window.location.hash = "#" + MinuteTemp; 阅读全文

posted @ 2012-11-22 11:27 哼哼小虾米 阅读(263) 评论(0) 推荐(0)

2012年10月25日

jquery

摘要: 1.按钮可用-- $("input").attr("disabled",false); $("input").attr("disabled",true);//提交按钮不可用2.获取下拉列表框的文本-- jQuery("#Status").find("option:selected").text(); --选择的下拉列表框的文本值3.在指定元素后面加html-- jQuery('').after('');4添加readonly属性$(" 阅读全文

posted @ 2012-10-25 15:09 哼哼小虾米 阅读(119) 评论(0) 推荐(0)

2012年8月28日

JS获取浏览器高度和宽度

摘要: IE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentElement.clientWidth ==> 可见区域宽度document.documentElement.clientHeight ==> 可见区域高度FireFox中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentEle 阅读全文

posted @ 2012-08-28 16:30 哼哼小虾米 阅读(112) 评论(0) 推荐(0)

2012年8月15日

jquery、js调用iframe父窗口与子窗口元素的方法

摘要: 1. jquery 在iframe子页面获取父页面元素代码如下:$("#objid", parent.document)2.jquery在父页面 获取iframe子页面的元素代码如下:$("#objid",document.frames('iframename').document)jQuery("#", window.frames['iframeCenter'].document).hide();//隐藏3.js 在iframe子页面获取父页面元素代码如下:indow.parent.document. 阅读全文

posted @ 2012-08-15 10:53 哼哼小虾米 阅读(1569) 评论(0) 推荐(0)

2012年5月22日

order by newid() 随机查询

摘要: SQL Server:Select TOP N * From TABLE Order By NewID()view plaincopy to clipboardprint?Select TOP N * From TABLE Order By NewID()Select TOP N * From TABLE Order By NewID()NewID()函数将创建一个 uniqueidentifier 类型的唯一值。上面的语句实现效果是从Table中随机读取N条记录。Access:Select TOP N * From TABLE Order By Rnd(ID)view plaincopy t 阅读全文

posted @ 2012-05-22 11:08 哼哼小虾米 阅读(318) 评论(0) 推荐(0)

导航