摘要: /** * 判断变量是否空值 * undefined, null, '', false, 0, [], {} 均返回true,否则返回false */ Vue.prototype.$empty = function empty(v) { switch (typeof v) { case 'undef 阅读全文
posted @ 2019-12-10 10:49 凉拌 阅读(289) 评论(0) 推荐(0)
摘要: function Type(e){ let text = '' switch(e){ case 'application/msword': text = '.doc';break; case 'application/vnd.openxmlformats-officedocument.wordpro 阅读全文
posted @ 2019-12-10 10:46 凉拌 阅读(777) 评论(0) 推荐(0)