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