会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
专注WEB前端开发
爱设计,爱编程,专注WEB前端开发
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
36
下一页
2014年9月2日
求一个字符串长度
摘要: function strLength(str){ var time1 = new Date; if(str.length == 0 || !str) return null; var l = str.length; for(var i = 0; i 255) l++; ...
阅读全文
posted @ 2014-09-02 15:57 leejersey
阅读(573)
评论(0)
推荐(0)
2014年8月28日
js时间戳怎么转成日期格式
摘要: 原文地址:http://www.sufeinet.com/thread-1500-1-1.htmljs时间戳怎么转成日期格式这个在主群里有朋友§☆釺哖蟲...o问js时间戳怎么转成日期格式 ,他的问题是这样的/Date(1354116249000)/这样的格式怎么转成时间格式这是从C#的Datati...
阅读全文
posted @ 2014-08-28 19:34 leejersey
阅读(6285)
评论(0)
推荐(0)
2014年8月25日
js获取url参数值的两种方式
摘要: js获取url参数值的方法有很多,下面也为大家介绍两种,喜欢的朋友可以测试下,希望对大家有所帮助方法一:正则分析法代码如下:function getQueryString(name) {var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i...
阅读全文
posted @ 2014-08-25 10:09 leejersey
阅读(2046)
评论(0)
推荐(0)
js 处理URL实用技巧
摘要: escape()、encodeURI()、encodeURIComponent()三种方法都能对一些影响URL完整性的特殊字符进行过滤。但后两者是将字符串转换为UTF-8的方式来传输,解决了页面编码不一至导致的乱码问题。例如:发送页与接受页的编码格式(Charset)不一致(假设发送页面是GB231...
阅读全文
posted @ 2014-08-25 10:08 leejersey
阅读(2180)
评论(0)
推荐(0)
2014年8月23日
jQuery操作radio、checkbox、select 集合
摘要: 1、radio:单选框HTML代码:1 2 3 4js操作代码:jQuery("input[type='radio'][name='radio']:checked").length == 0 ? "没有任何单选框被选中" : "已经有选中"; jQuery('input[type="radio"][...
阅读全文
posted @ 2014-08-23 14:57 leejersey
阅读(7913)
评论(0)
推荐(0)
js处理url的技巧和归纳
摘要: var url = 'http://www.deikang.com/index.php?tel=15811296111&status=1&id=100';var n = url.indexOf('?');//alert(n);var m = url.substring(n + 1, url.leng...
阅读全文
posted @ 2014-08-23 13:09 leejersey
阅读(1362)
评论(0)
推荐(0)
2014年8月16日
ajax hash缓存
摘要: hash 模拟url路由function hashdone(){var hash;hash=(!window.location.hash)?"#one":window.location.hash;window.location.hash=hash;var hashStr = location.has...
阅读全文
posted @ 2014-08-16 16:50 leejersey
阅读(792)
评论(0)
推荐(0)
2014年8月13日
jquery ajax跨域
摘要: JSONP是一个非官方的协议,它允许在服务器端集成Script tags返回至客户端,通过javascript callback的形式实现跨域访问方法一: jsonp之 getJSONjsvar url = "http://localhost/mytest/jsonp_php.php?callbac...
阅读全文
posted @ 2014-08-13 13:18 leejersey
阅读(1089)
评论(0)
推荐(0)
2014年8月12日
jquery ajax 的 $.get()用法详解
摘要: js文件$(document).ready(function(){ $("form").submit(function(event) {event.preventDefault()})//取消submit的默认行为 $("form input[type='submit']").click...
阅读全文
posted @ 2014-08-12 10:39 leejersey
阅读(4049)
评论(0)
推荐(0)
2014年8月4日
js命名空间写法
摘要: 很早知道这种写法,由于基础面向对象不够扎实一直在回避,但是面对整站这种方法还是有必要会111 现实 层 1 2 3 内容1 ...
阅读全文
posted @ 2014-08-04 13:25 leejersey
阅读(1125)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
36
下一页