2013年12月5日
摘要: 1. 最常见的拼接方法:url?arg1=value1&arg2=value2&arg3=value3...注:第一个参数用?进行连接,其他的用&连接。example:1 var loadsrc = $(this).attr('href'); //this为页面当中的一个元素2 var companyId = $(this).attr('companyId');3 var companyName = $(this).text();4 window.location.href = loadsrc + '?companyid=' 阅读全文
posted @ 2013-12-05 15:19 东方云游 阅读(22332) 评论(0) 推荐(1) 编辑
摘要: 今天看到这篇介绍JSON和JSONP的文章,感觉写的很好。http://www.cnblogs.com/dowinning/archive/2012/04/19/json-jsonp-jquery.html 阅读全文
posted @ 2013-12-05 14:14 东方云游 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 函数:1 function getUrlParam(name) {2 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");3 var r = window.location.search.substr(1).match(reg);4 if (r != null) return unescape(r[2]); return null;5 }example:1 url= http://localhost:61091/Static/staffingForm.html?compan 阅读全文
posted @ 2013-12-05 10:41 东方云游 阅读(539) 评论(0) 推荐(0) 编辑