随笔分类 - JavaScript
摘要:项目 新建 Spring Starter Project,编辑 pom.xml 文件,引入依赖: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
阅读全文
摘要:项目 新建 Spring Starter Project,编辑 pom.xml 文件,引入依赖: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
阅读全文
摘要:Example: Using object URLs to display PDF Object URLs can be used for other things than just images! They can be used to display embedded PDF files or
阅读全文
摘要:FileReader.readAsDataURL() The readAsDataURL method is used to read the contents of the specified Blob or File. When the read operation is finished, t
阅读全文
摘要:Selecting files using drag and drop You can also let the user drag and drop files into your web application. The first step is to establish a drop zon
阅读全文
摘要:Using hidden file input elements using the click() method You can hide the admittedly ugly file <input> element and present your own interface for ope
阅读全文
摘要:HTML & CSS & JavaScript 从一个表格到一个灰阶颜色表 01 HTML & CSS & JavaScript 从一个表格到一个灰阶颜色表 02 HTML & CSS & JavaScript 从一个表格到一个灰阶颜色表 03 HTML & CSS & JavaScript 从一个
阅读全文
摘要:工具1:HBuilder X 1.9.9.20190522 工具2:火狐浏览器 67.0.4 (64 位) 其实,我还想使用表格,做一个这样的颜色表,如下图所示: 如果按照之前的做法,把每一种颜色都列举出来,估计做完上面这个颜色表,估计人都废了。 为了解决这个重复性的问题,我们必须引入另一种语言:J
阅读全文
摘要:工具1:HBuilder X 1.9.9.20190522 工具2:火狐浏览器 67.0.4 (64 位) 目前,我们已经将一些行和列插入到表格中,并设置单元格的背景颜色,显示 RGB 值等。 例 7:最后,我们需要将表头插入到表格中。基于上一个例子,我们再加入一些 JavaScript 代码。 1
阅读全文
摘要:将十进制数转换成格式类似于 0x000100 或 #000100 的十六进制数 第 22 行:var hexCode = value.toString(16); 语法:NumberObject.toString(radix) 定义和用法:toString() 方法可把一个 Number 对象转换为一
阅读全文

浙公网安备 33010602011771号