随笔分类 -  JS

摘要:Antv X6官网:https://x6.antv.vision/zh/docs/tutorial/about 首先展示一下效果: 这是只是做了一个简单的demo,具体项目的需求就看个人怎么使用,下面附上demo的全部代码: <!DOCTYPE html> <html> <head> <meta c 阅读全文
posted @ 2021-06-10 09:16 幸运(● ̄(エ) ̄●) 阅读(2773) 评论(1) 推荐(0)
摘要:function GetDateStr(AddDayCount) { var dd = new Date(); dd.setDate(dd.getDate() + AddDayCount); //获取AddDayCount天后的日期 var y = dd.getFullYear(); var m = 阅读全文
posted @ 2021-01-14 09:32 幸运(● ̄(エ) ̄●) 阅读(134) 评论(1) 推荐(0)
摘要:要实现从一个页面A跳到另一个页面B,js实现就在A的js代码加跳转代码 JS跳转大概有以下几种方式: 第一种:(跳转到b.html)<script language="javascript" type="text/javascript">window.location.href="b.html";< 阅读全文
posted @ 2021-01-13 10:14 幸运(● ̄(エ) ̄●) 阅读(2173) 评论(0) 推荐(0)
摘要:一、此方法火狐有些版本是不支持的 window.location.href = 'https://*****.oss-cn-**.aliyuncs.com/*********'; 二、为了解决火狐有些版本不支持,可以改成这种方式 window.location='https://*****.oss- 阅读全文
posted @ 2020-12-30 09:28 幸运(● ̄(エ) ̄●) 阅读(12048) 评论(1) 推荐(1)
摘要:声明 var map = new Map(); 设值 map.set("key","value"); 取值 map.get("key"); 判断key是否存在 map.has("key"); 删除key map.delete("key"); 阅读全文
posted @ 2020-12-16 15:56 幸运(● ̄(エ) ̄●) 阅读(141) 评论(0) 推荐(0)
摘要:话不多说直接上代码 //监听授权按钮 form.on('submit(Authorization)', function (data) { var userid = document.getElementById("UserId").value; var checkedData = tree.get 阅读全文
posted @ 2020-09-06 14:14 幸运(● ̄(エ) ̄●) 阅读(1423) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="application/xhtml+xml;charset=UTF-8" /><meta name="viewport" content="width=device 阅读全文
posted @ 2020-09-01 19:29 幸运(● ̄(エ) ̄●) 阅读(512) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <button onclick="fullScreen()">现代浏览器全屏</button> <button onclick="e 阅读全文
posted @ 2020-08-25 17:59 幸运(● ̄(エ) ̄●) 阅读(1586) 评论(0) 推荐(0)
摘要:1 function ShowTime() { 2 let t = window.setInterval(function GetTime() { 3 var time1 = new Date(); 4 var year = time1.getFullYear(); 5 var month = ti 阅读全文
posted @ 2020-07-16 16:14 幸运(● ̄(エ) ̄●) 阅读(902) 评论(0) 推荐(0)
摘要:效果展示: 上图中每隔两秒钟动态加载一次数据,详细设置代码如下: 1 <script type="text/javascript"> 2 var dom = document.getElementById("container"); 3 var myChart = echarts.init(dom) 阅读全文
posted @ 2020-07-16 14:44 幸运(● ̄(エ) ̄●) 阅读(841) 评论(0) 推荐(0)
摘要:先展示一下效果图: js代码: 1 ///数据可以随机获取 2 var xsarr = new Array(20);//x轴 3 var tgyl = new Array(20);//套管压力 4 var tgpl = new Array(20);//套管排量 5 var tgzyl = new A 阅读全文
posted @ 2020-07-16 14:24 幸运(● ̄(エ) ̄●) 阅读(921) 评论(0) 推荐(0)
摘要:效果图: 这里给出了第一一个图的例子JS代码: 1 $(function () { var qxarr = new Array(7);//清洗数据5 var maxarr = new Array(7);//最优区间最大值 var minarr = new Array(7);//最优区间最小值 //三 阅读全文
posted @ 2020-06-28 14:09 幸运(● ̄(エ) ̄●) 阅读(1240) 评论(0) 推荐(0)
摘要:1 <div class="side" id="sportsItem2"> 2 <ul class="sub_menu"> 3 <li><a id="01" class="on" href="#" target="main"><img src="images/menu_navico_01.png" 阅读全文
posted @ 2020-06-22 13:02 幸运(● ̄(エ) ̄●) 阅读(2292) 评论(0) 推荐(0)
摘要:主要目的是使用javascript:window.open()对浏览器 iE6.0,7.0,8.0,chorme,safari,firefox能适用。刚开始的时候对最大化使用<a href="javascript:void window.open('https://www.sina. com.cn/ 阅读全文
posted @ 2020-06-12 10:24 幸运(● ̄(エ) ̄●) 阅读(1627) 评论(0) 推荐(0)
摘要:js代码: $.ajax({ type: "post", url: "AaxClassKPfm.aspx/SaveGCJ",//AaxClassKPfm.aspx为请求页面,SaveGCJ为请求页面方法名 contentType: "application/json; charset=utf-8", 阅读全文
posted @ 2020-06-05 11:19 幸运(● ̄(エ) ̄●) 阅读(738) 评论(0) 推荐(1)

Document