明天的明天 永远的永远 未知的一切 我与你一起承担 ??

是非成败转头空 青山依旧在 几度夕阳红 。。。
随笔 - 1277, 文章 - 0, 评论 - 214, 阅读 - 320万
  博客园  :: 首页  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  jQuery

摘要: 阅读全文

posted @ 2018-12-24 10:04 且行且思 阅读(1019) 评论(0) 推荐(0) 编辑

摘要:Math 对象方法方法 描述Math.ceil(x) 对数进行上舍入。(向上取整;大于等于x的最小整数)Math.floor(x) 对数进行下舍入。(小于等于x的最大整数)Math.max(x,y) 返回 x 和 y 中的最高值。(返回x、y中的最大值;可以传入多个参数,用逗号隔开)Math.min 阅读全文

posted @ 2018-11-05 10:00 且行且思 阅读(676) 评论(0) 推荐(0) 编辑

摘要:实现目标:两个网站页面实现跨域相互通信 当前例子依赖于 jQuery 3.0 父页面代码:www.a.com/a.html 子页面代码:www.b.com/b.html 或子页面的 按钮直接触发: //向父窗框返回结果 window.parent.postMessage({ act: 'respon 阅读全文

posted @ 2018-10-18 22:32 且行且思 阅读(1567) 评论(0) 推荐(1) 编辑

摘要:// 对Date的扩展,将 Date 转化为指定格式的String // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符, // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) Date.prototype.Format = function (fmt) { /... 阅读全文

posted @ 2018-10-09 16:12 且行且思 阅读(1376) 评论(0) 推荐(0) 编辑

摘要:$("input[name=test]").map(function(){return this.value;}).get().join(",") 阅读全文

posted @ 2018-09-11 17:50 且行且思 阅读(1585) 评论(0) 推荐(0) 编辑

摘要:$(".modalDishMsgTitleWrap").find(".standardBtn.pt5.pb5.active").text() 阅读全文

posted @ 2018-07-20 09:47 且行且思 阅读(4308) 评论(0) 推荐(0) 编辑

摘要:js中有两种声明函数的方法,分别为: 为什么会有两种不同的方法?每个方法的优点和缺点分别是什么?有什么情况是一种方法能完成而另外一种方法不能完成的吗? by @Greg 不同点在于functionOne只会在到达赋值的那一行才会被真正定义,而functionTwo会在 包含它的函数或script脚本 阅读全文

posted @ 2018-06-22 10:46 且行且思 阅读(885) 评论(0) 推荐(0) 编辑

摘要:在项目中使用select2:选中项 设置可清除。 代码中加上了allowClear : true 数据加载之后。默认会选中第一项。 解决办法:select里面加上一个空的选项,如: 阅读全文

posted @ 2018-06-14 22:47 且行且思 阅读(8086) 评论(0) 推荐(0) 编辑

摘要:Html 内容 loading部分: CSS 展示效果: 延迟间隔 关闭loading 阅读全文

posted @ 2018-02-20 15:15 且行且思 阅读(8042) 评论(0) 推荐(0) 编辑

摘要:换行问题 遇到换行,我们首先想到的是将”\n”替换成”<br/>”,我也是这么做的,可惜这在Tooltip中不管用。Tooltip直接把”<br/>”当作文字显示出来了。 jquery-ui-1.10.3.full.min.js 修改该类如下代码: 最后,均可实现html标签内title内容显示时换 阅读全文

posted @ 2017-11-08 23:14 且行且思 阅读(3347) 评论(0) 推荐(0) 编辑

摘要:最近在做项目的过程中碰到了这样的一个问题:在使用bootstrap模态框的过程中,在模态框中有一个checkbox标签,一开始是为选中的,当点击触发模态框按钮,选中chcekbox时,会显示勾选,这个时候将选中的状态缓存起来,然后点击模态框中的关闭按钮,再次点击触发模态框按钮弹出模态框,这个时候问题 阅读全文

posted @ 2017-05-31 17:07 且行且思 阅读(295) 评论(0) 推荐(0) 编辑

摘要:/** 仿 iOS 系统通知数字样式 **/ .num_span{ background-color: #f00; background-image: -webkit-linear-gradient(top, #f00, #600); /* Chrome 10+, Saf5.1+, iOS 5+ */ background-image: -moz-linear-gradient(to... 阅读全文

posted @ 2017-01-30 16:26 且行且思 阅读(830) 评论(0) 推荐(0) 编辑

摘要:$(".load_more").css('display','none'); 或$(that.more).find("strong").hide(); 需要注意的问题(offset) $(that.more).offset().top 值有可能为0其offset()都会变为0,但是实际上通过att... 阅读全文

posted @ 2015-12-28 23:03 且行且思 阅读(967) 评论(0) 推荐(0) 编辑

摘要:JQuery:Javascript:网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeight网页可见区域宽: document.body.offsetWidth (包括边线的宽)网页可见区域高: document.body.offsetHeight (包括边线的高)网页正文全文宽: document.body.scrollWidth网页正文全文高: document.body.scrollHeight网页被卷去的高: document.body.scrollTop网页被卷去的左: document.body.sc 阅读全文

posted @ 2014-03-13 10:28 且行且思 阅读(4743) 评论(0) 推荐(1) 编辑

摘要:var obj = {"status":1,"bkmsg":"\u6210\u529f","bkdata":["\u5415\u5c1a\u5fd7","1387580400","\u6dfb\u52a0\u8bb0\u5f55"]}{"status":1,"bkmsg":"\u6210\u529f","bkdata":["\u5415\u5c1a\u5fd7&quo 阅读全文

posted @ 2014-03-02 10:08 且行且思 阅读(34092) 评论(1) 推荐(3) 编辑

摘要:1. 获得iframe的window对象存在跨域访问限制。chrome:iframeElement. contentWindow firefox: iframeElement.contentWindow ie6:iframeElement.contentWindow 文章Iframes, onload, and document.domain中说“he iframe element object has a property called contentDocument that contains the iframe’s document object, so you can use the 阅读全文

posted @ 2013-10-30 22:20 且行且思 阅读(595) 评论(0) 推荐(0) 编辑

摘要:首页 上一页 第页,共{pagecount}页 下一页 最后一页 刷新 //*********************************************** 以上为js生面的分页代码 ,并已做监听事件。>>>>>$("#pages").html("");temp = $("div[name='fixpages']");//pages_img fix//temp = $(".pages_img");//用jquery的clone方法来解决动态div的复制te 阅读全文

posted @ 2013-10-26 17:36 且行且思 阅读(5833) 评论(0) 推荐(0) 编辑

摘要:setTimeout 用于延时器,只执行一次.setInterval:用于多次执行.//******************************************项目中引用到jquery.timers-1.2.js定时器,并且MSClass做信息定期滚动,每3分钟执行一次,执行三次左右,滚动的次数越来越快,原因在于timers和MSClass都用了setInterval,都会再次添加一个setInterval,最后导致几个setInterval并发执行了,所以速度很快,需要在调用的时候clearInterval上次的setInterval ,或者引用MSClass作者的原方法,//定 阅读全文

posted @ 2013-10-12 17:42 且行且思 阅读(701) 评论(0) 推荐(0) 编辑

摘要:这是仿照腾讯的微薄上的一个效果。滚动条可以无限的网下滚动并且无刷不断从数据库中获取新的数据。 <style type="text/css"> body{ font-family: "Trebuchet MS",verdana,arial;} #loading{ display:none; font-weight:bold;color:#FF0000;} p { padding:10px;} </style><p id="loading">loading data... </p> $(fu 阅读全文

posted @ 2012-07-31 10:02 且行且思 阅读(3820) 评论(0) 推荐(0) 编辑

摘要:下面采用的导EXCEL方法,适合不翻页的grid,而且无需再读一次数据库,对于翻页的grid来说,要导全部,当然后台要再读一次数据库,这种导EXCEL方法baidu一大堆,这里不重复代码:grid.htm<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml&q 阅读全文

posted @ 2012-07-30 11:08 且行且思 阅读(7339) 评论(1) 推荐(1) 编辑

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