• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
A Developer's Expedition
敏而好学、孜孜不倦、TOP10
博客园 首页 新随笔 订阅 订阅 管理

随笔分类 -  Ajax/Javascript

 
js日期重写
摘要:Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes... 阅读全文
posted @ 2014-03-14 14:35 Livermore.S 阅读(381) 评论(0) 推荐(0)
js中快速获取数组中的最大值最小值
摘要:var a=[1,2,3,5];alert(Math.max.apply(null, a));//最大值alert(Math.min.apply(null, a)); //最小值多维数组如下var a = [1, 2, 3, [5, 6], [1, 4, 8]];var ta = a.join(",").split(","); //转化为一维数组alert(Math.max.apply(null,... 阅读全文
posted @ 2014-03-13 09:59 Livermore.S 阅读(325) 评论(0) 推荐(0)
js字符拼接
摘要:for (var j = 0; j < 9; j++) { eval("if (datas[i].b" + j + " == '1') { b[j-1] = 1; }"); eval("if (datas[i].c" + j + " == '1') { c[j-1] ... 阅读全文
posted @ 2014-03-12 13:24 Livermore.S 阅读(346) 评论(0) 推荐(0)
js从后台无法取值问题
摘要:前台代码后台代码public partial class statics_Default : System.Web.UI.Page{ public string json_addusers = string.Empty; public string json_dates = string.Empty; protected void Page_Load(object sender,... 阅读全文
posted @ 2014-01-24 20:34 Livermore.S 阅读(373) 评论(0) 推荐(0)
json全套
摘要:JS文件function pager1_InitData() { //基础配置 $("#pager1").myPagination({ currPage: 1, pageCount: 1, pageSize: 10, cssStyle: 'quotes', info: { cookie_curr... 阅读全文
posted @ 2014-01-24 16:29 Livermore.S 阅读(565) 评论(0) 推荐(0)
js传url中文参数乱码问题
摘要:$("#btnKeyWord").click(function () { window.open("/Atraction/Atraction.aspx?keyword=" + encodeURI(encodeURI($("#txtKeyWord").val()))); });注意:这里要两次转码$("#searchContent").val(decodeURI(getQuery... 阅读全文
posted @ 2014-01-04 15:41 Livermore.S 阅读(10551) 评论(1) 推荐(1)
JS三元
摘要:((productDatas[i].Img.indexOf("http") == -1) ? ("/upload/190-160/" + productDatas[i].Img) : productDatas[i].Img) 阅读全文
posted @ 2014-01-02 15:38 Livermore.S 阅读(115) 评论(0) 推荐(0)
js:confirm
摘要:OnClientClick="javascript:return confirm('是否继续?');" 阅读全文
posted @ 2012-11-08 13:53 Livermore.S 阅读(192) 评论(1) 推荐(0)
json
摘要:{ "programmers": [ { "firstName": "Brett", "lastName":"McLaughlin", "email": "brett@newInstance.com" }, { "firstName": "Jason", "lastName":"Hunter", "email": "jason@servlets.c 阅读全文
posted @ 2012-10-09 19:29 Livermore.S 阅读(189) 评论(0) 推荐(0)
实现类似51job的选择框
摘要:51job上的效果 没找到, 弄个有点像的. 它的二层是多选框 偶的比较难堪 显示写个下拉框, 也可以从数据库获取 <select style="margin: 0px auto; width: 130px;" onchange="showSelect(this.value)" name=""> <option value="-1... 阅读全文
posted @ 2012-02-23 15:09 Livermore.S 阅读(614) 评论(0) 推荐(0)
js-definition-guide0221
摘要:1.1 Core JavaScript This section is a tour of the JavaScript language. Types, Values, and Variables // variable is a symbolic name for a value.// Variables are declared with the var keyword:var ... 阅读全文
posted @ 2012-02-21 21:06 Livermore.S 阅读(360) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3