jq
xixibandian
这个作者很懒,什么都没留下…
展开
-
jq中文件 上传的方法
$(function () { var fileLen ="" var upImageLen ="" var getDataList ={ init:function(){ this.addListenner(); } addListenner:function(){ var self = this; //附件上传 $("#upload_file").on('change',.原创 2021-12-01 14:56:15 · 1972 阅读 · 0 评论 -
kb转mb的方法
var fileSize = file[0].size / 1024 / 1024 < 20;原创 2021-12-01 14:36:31 · 1216 阅读 · 0 评论 -
jquery中面向对象的函数
$(function () { var getDataList ={ init:function(){ this.addListenner(); } addListenner:function(){ var self = this var url = bpmUrl + "/workflow/anonData/g...原创 2021-12-01 14:16:59 · 393 阅读 · 0 评论 -
jquery获取链接中的参数方法
function getUrlParms(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var getHref = decodeURI(window.location.search) var r =getHref.substr(1).match(reg) if(r!=null) return unescape(r[2]); return null;.原创 2021-12-01 14:02:44 · 1070 阅读 · 0 评论 -
window.location对象详解
window.location.href(当前URL)结果如下:http://www.myurl.com:8866/test?id=123&username=xxxwindow.location.protocol(协议)结果如下:http:window.location.host(域名 + 端口)结果如下:www.myurl.com:8866window.location.hostname(域名)结果如下:www.myurl.comwindow.lo原创 2021-09-02 13:59:32 · 222 阅读 · 0 评论 -
使用jq时window的用法
1.重新刷新页面使用window.location.reload//模态框中右上角关闭图标点击刷新页面$("#refresh-box .close").click(function() { window.location.reload();})window.location.reload2.打开新页面使用window.location.herfwindow.location.href = "https://bjtest.xdf.cn/passport//user/detail";原创 2021-09-02 10:54:14 · 926 阅读 · 0 评论