上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 35 下一页
摘要: JS字符串截取函数slice(),substring(),substr()的区别 在JS中,slice()、substring()、substr()都有截取字符串的作用,那他们有哪些用法上的区别呢?如果你也有疑惑,这篇文章或许能够帮助到你。 一、substring() substring()方法返回 阅读全文
posted @ 2019-01-06 11:19 Jinsuo 阅读(224) 评论(0) 推荐(0) 编辑
摘要: text-overflow: ellipsis; overflow: hidden; white-space: nowrap;/*文本不换行*/ 阅读全文
posted @ 2019-01-06 11:19 Jinsuo 阅读(197) 评论(0) 推荐(0) 编辑
摘要: // window.location.href='apartment_details.html?id='+idnum+'&code=123' 阅读全文
posted @ 2018-12-26 13:59 Jinsuo 阅读(93) 评论(0) 推荐(0) 编辑
摘要: function GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); strs = str.split(... 阅读全文
posted @ 2018-12-26 13:58 Jinsuo 阅读(241) 评论(0) 推荐(0) 编辑
摘要: JS获取URL中参数值(QueryString)的4种方法 方法一:正则法 function getQueryString(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = window.location.search.substr(1).match(reg); if... 阅读全文
posted @ 2018-12-26 13:58 Jinsuo 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-08 12:01 Jinsuo 阅读(676) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-05 14:01 Jinsuo 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-01 16:39 Jinsuo 阅读(204) 评论(0) 推荐(0) 编辑
摘要: this.uploadimgs({ url: app.globalData.baseUrl + 'rest/app/hmpg/opus', //上传的接口地址 后台提供 path: imgList//这里是选取的图片的地址数组 }); this.uploadimgs({ url: app.globa 阅读全文
posted @ 2018-11-01 10:52 Jinsuo 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-01 10:33 Jinsuo 阅读(156) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 35 下一页