摘要:
这两天工作时用到动态加载CSS和JS的地方比较多,这里稍微做下整理。 var tool = { loadStyle:function(url){ var head = document.getElementsByTagName('head')[0] , //获取头标签 link = document 阅读全文
摘要:
面积图 饼图: 阅读全文
摘要:
var file = $("input[type='file']")[0]; file.on("change",function(){ var cur = this; var size = cur.files[0].size; }); 阅读全文
摘要:
Date.prototype.Format = function(fmt) { //author: meizz var o = { "M+" : this.getMonth()+1, //月份 "d+" : this.getDate(), //日 "h+" : this.getHours(), // 阅读全文