随笔分类 -  前端 / JS

摘要:自制可配制的canvas进度条, <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CanvasTest</title> <style type="text/css"> .ProgressBar{ width:300px; } < 阅读全文
posted @ 2021-11-01 19:09 盛沧海 阅读(385) 评论(0) 推荐(0)
摘要:以下代码来源网络…… var colors=["red","blue","green","black","orange","purple"] option = { title: { text: '测试', }, tooltip: { trigger: 'axis', axisPointer: { / 阅读全文
posted @ 2021-10-19 17:12 盛沧海 阅读(607) 评论(0) 推荐(0)
摘要:测试链接: https://echarts.apache.org/examples/zh/editor.html?c=custom-profile 操作方法,将下述代码copy到编辑窗口,即可进行相应测试。 var data = []; var dataCount = 10; var startTi 阅读全文
posted @ 2021-06-08 18:09 盛沧海 阅读(995) 评论(0) 推荐(0)
摘要:option = { series: [{ type: 'gauge', progress: { color:'FF0000', show: true, width: 18 }, axisLine: { lineStyle: { width: 18 } }, axisTick: { show: fa 阅读全文
posted @ 2021-04-27 18:26 盛沧海 阅读(1987) 评论(0) 推荐(0)
摘要:来源网络,作了简单优化优化 //导出excel function toExcel(bookname,targetControlerID) { //window.location.href='<%=basePath%>pmb/excelShowInfo.do'; //获取表格 try { var ex 阅读全文
posted @ 2020-12-22 18:19 盛沧海 阅读(351) 评论(0) 推荐(0)
摘要:以下3步走实现加载中,来源网络…… 1.添加CSS 加载中转圈CSS #loading { margin: auto; margin-top: 10px; display: block; width: 100px; height: 100px; background: #FFFFFF; /*bord 阅读全文
posted @ 2020-10-25 00:54 盛沧海 阅读(5402) 评论(0) 推荐(0)
摘要:1 html构建骨架,css简单化妆,js实现切换。 2 3 4 5 <!DOCTYPE html> 6 7 <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> 8 <head> 9 <meta charset="utf-8" /> 10 <t 阅读全文
posted @ 2020-07-16 16:39 盛沧海 阅读(294) 评论(0) 推荐(0)