07 2018 档案

摘要:js中!的用法是比较灵活的,它除了做逻辑运算常常会用!做类型判断,可以用!与上对象来求得一个布尔值,1、!可将变量转换成boolean类型,null、undefined和空字符串取反都为false,其余都为true。 2、!!常常用来做类型判断,在第一步!(变量)之后再做逻辑取反运算,在js中新手常 阅读全文
posted @ 2018-07-25 09:54 杨不凡 阅读(206) 评论(0) 推荐(0)
摘要:tooltip: { trigger: 'item', formatter: "{a} {b}: {c} ({d}%)", position:function(p){ //其中p为当前鼠标的位置 return [p[0] + 10, p[1] - 10]; }, extraCssText:'width:160px;height:40px;b... 阅读全文
posted @ 2018-07-13 09:50 杨不凡 阅读(123) 评论(0) 推荐(0)
摘要:var strObj = JSON.parse(str_pin); //专程json对象 strObj.sort(paixu('val')); //对属性值进行排序 function paixu(property){ retrun function(a,b){ var value1 = a[prop 阅读全文
posted @ 2018-07-04 13:48 杨不凡 阅读(89) 评论(0) 推荐(0)
摘要:select cyrdw as s,(select count(*) from caiyong where cylx = 'dantiao' and cyrdw = s),(select count(*) from caiyong where cylx = 'zonghe' and cyrdw = 阅读全文
posted @ 2018-07-02 14:03 杨不凡 阅读(142) 评论(0) 推荐(0)