![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
hua_ed
这个作者很懒,什么都没留下…
展开
-
用Echarts自定义多系列左右双坐标对比的图表,适合展示TGI对比等场景
用Echarts自定义多系列左右双坐标对比的图表,适合展示TGI对比等场景。 renderItem = function (params, api) { console.log('------------') var xValue = api.value(1); console.log(api.value(1)) console.log(params) var currentSeriesIndices = api.curr...原创 2021-05-17 17:38:39 · 1037 阅读 · 0 评论 -
web系统添加水印
目录 实现: 配置 页面变动后重绘 实现: 第三方github地址:https://github.com/saucxs/watermark-dom const userIp = d.userIp ? ", " + d.userIp: ""; // 获取用户IP const dateString = new Date().toLocaleString({}, { hour12: false }); // 计算时间 let zone = -new Date().getTimezoneOffset原创 2021-02-23 16:53:07 · 572 阅读 · 0 评论 -
javascript实现的A*寻径算法练习
任意点2个点,会自动用a*算法寻径。 效果如下: 复制如下内容到html文件,打开即可体验。 <canvas id="myCanvas" width="600" height="500" onclick="mapOnclick()" style="border:1px solid #c3c3c3;"> Your browser does not support t...原创 2015-01-31 16:44:31 · 717 阅读 · 0 评论 -
137行JS贪吃蛇
分享一个由137行Javascript完成的贪吃蛇游戏,保存成html文件就能玩。 firefox5.0/ie7,8,9运行正常。 练手成品。还是挺服自己当时那么闲。。。 <title>SNAKE</title> <style>div{margin :1px;width:19px;height:19px;position:absolute;} p{...原创 2012-03-14 20:56:54 · 538 阅读 · 0 评论