摘要:
let num = 2; let arr = []; if (num > 0) { for (var i = 0; i < (num*2+1); i++) { let num1 = num - (0.5*i); arr.unshift(num1); } console.log(arr); } els 阅读全文
摘要:
//handleTreeCheck是选中的节点 //treeNode是节点上的数据,是个对象 //treeNode.childMenuList是节点上的子节点,是个数组 function handleTreeCheck(el, a, treeNode) { if (treeNode.checked) 阅读全文
摘要:
` 1 import * as echarts from "echarts"; // 百分比饼图 getBar() { let chartDom = document.getElementById("bing1"); let myChart = echarts.init(chartDom); let 阅读全文
摘要:
1、toLowerCase(): 把字符串转为小写,返回新的字符串。 var str="Hello World"; var str1=str.toLowerCase(); console.log(str); //Hello World console.log(str1); //hello world 阅读全文