上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 79 下一页
摘要: js function exportCanvasAsPNG(id, fileName) { var canvasElement = document.getElementById(id); var MIME_TYPE = "image/png"; var imgURL = canvasElement 阅读全文
posted @ 2021-08-28 00:14 木子欢儿 阅读(661) 评论(0) 推荐(0) 编辑
摘要: 在需要隐藏的区域加一个Div,例如想在手机端隐藏kongbiji这张图片,代码如下: <div class="none"><img src="kongbiji.jpg"/></div> 如果想设置屏幕尺寸达到了 768 像素以下将会隐藏,否则显示。 则把DIV加一个样式代码如下: @media sc 阅读全文
posted @ 2021-08-22 01:13 木子欢儿 阅读(507) 评论(0) 推荐(0) 编辑
摘要: <script type='text/javascript'> const handler = setInterval(function () { console.clear(); const before = new Date(); debugger; const after = new Date 阅读全文
posted @ 2021-08-21 23:12 木子欢儿 阅读(214) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <title>Demo</title> <style> .textarea-container { position: relative; margin-left: 30%; } .textarea-container textarea { width: 50%; hei 阅读全文
posted @ 2021-08-18 09:00 木子欢儿 阅读(75) 评论(0) 推荐(0) 编辑
摘要: https://js-delivr-cdn-purge.vercel.app/ 欢迎Star https://github.com/muzihuaner/jsDelivrCDNpurge/ 阅读全文
posted @ 2021-08-17 16:53 木子欢儿 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 一个漂亮的、响应式的、可定制的和可访问(WAI-ARIA)的JAVASCRIPT弹窗,无任何依赖 中文文档地址:http://mishengqiang.com/sweetalert2/ 文档地址:https://sweetalert2.github.io/ GitHub项目地址:https://gi 阅读全文
posted @ 2021-08-14 16:54 木子欢儿 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 一、简介 Viewer.js 是一款强大的图片查看器。 Viewer.js 有以下特点: 支持移动设备触摸事件 支持响应式 支持放大/缩小 支持旋转(类似微博的图片旋转) 支持水平/垂直翻转 支持图片移动 支持键盘 支持全屏幻灯片模式(可做屏保) 支持缩略图 支持标题显示 支持多种自定义事件 Vie 阅读全文
posted @ 2021-08-11 10:23 木子欢儿 阅读(637) 评论(0) 推荐(0) 编辑
摘要: CSS #maomao { position: fixed; bottom: 40px; right: -5px; width: 57px; height: 70px; background-image: url(https://cdn.jsdelivr.net/gh/muzihuaner/huan 阅读全文
posted @ 2021-08-08 21:52 木子欢儿 阅读(196) 评论(0) 推荐(0) 编辑
摘要: random_walk.py from random import choice class RandomWalk(): """初始化随机漫步数据的类""" def __init__(self, num_points=5000): self.num_points = num_points # 所有随 阅读全文
posted @ 2021-08-02 19:03 木子欢儿 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 我正在为随机游走模型编写代码,我使用plt.axes().get_xaxis().set_visible(False)来隐藏轴,但是当我运行程序时,绘图仍然显示两个轴。以下是我写的: import matplotlib.pyplot as plt from random_walk import Ra 阅读全文
posted @ 2021-08-02 18:53 木子欢儿 阅读(337) 评论(0) 推荐(1) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 79 下一页