随笔分类 -  JS

摘要://加在series中itemStyle: { normal: { label: { show: true, position: 'top', textStyle: { color: '#615a5a' }, formatter:func... 阅读全文
posted @ 2018-01-02 15:44 smallf 阅读(835) 评论(0) 推荐(0)
摘要:var get = function(url) { if(location.protocol "http") { return url; } var reg = /^(http[s]?:\/\/)?([^\/]+)(.*)/, matches = url.match(reg); url = list 阅读全文
posted @ 2017-11-21 11:55 smallf 阅读(1521) 评论(0) 推荐(0)
摘要:function uploadPic(){ var options = { url : "/upload/updatePic.action", type : "post", dataType : "json", success : function(data){ $("#allUrl").attr("src", data.url); $("#imgUrl... 阅读全文
posted @ 2017-06-24 20:23 smallf 阅读(350) 评论(0) 推荐(0)
摘要:$.fn.serializeJson=function(){ var serializeObj={}; var array=this.serializeArray(); $(array).each(function(){ if(serializeObj[this.name]){ if($.isArr 阅读全文
posted @ 2017-06-12 17:11 smallf 阅读(128) 评论(0) 推荐(0)