<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< ...
分类:
其他好文 时间:
2020-06-20 16:16:38
阅读次数:
54
cookie 本来用于客户端和服务端通信, 但是因为它有本地存储的功能,于是被“借用”了。 使用方法 document.cookie 获取和修改即可 缺点 存储量太少,只有4kb 所有http请求都带着,会影响获取资源的效率。 API简单,需要封装才能使用。 localStorage和session ...
分类:
Web程序 时间:
2020-06-20 15:43:50
阅读次数:
59
https://help.aliyun.com/document_detail/88476.html?spm=a2c4g.11186623.6.1086.207134443kjsQz 字符串上传 <?php if (is_file(__DIR__ . '/../autoload.php')) { r ...
分类:
Web程序 时间:
2020-06-20 14:29:09
阅读次数:
123
协调节点默认使用文档 ID 参与计算(也支持通过 routing),以便为路由提供合适的分片。 shard = hash(document_id) % (num_of_primary_shards) 1、当分片所在的节点接收到来自协调节点的请求后,会将请求写入到 Memory Buffer,然后定时 ...
分类:
其他好文 时间:
2020-06-20 11:24:13
阅读次数:
115
1、当前时间换时间戳 var timestamp = parseInt(new Date().getTime()/1000); // 当前时间戳 document.write(timestamp); 2、当前时间换日期字符串 var now = new Date(); var yy = now.ge ...
分类:
Web程序 时间:
2020-06-20 10:21:55
阅读次数:
69
document.write() 用法 在JavaScript中document.write()函数可以向文档写入HTML表达式或JavaScript代码,用法“document.write(exp1,exp2,exp3,....)”,该函数可接受任何多个参数,并将其写入文档中。 document. ...
分类:
编程语言 时间:
2020-06-19 21:24:21
阅读次数:
84
//解决echarts图中canvas父级div宽度问题 var a = document.getElementsByTagName("canvas")[2]; var par = a.parentNode; par.style.width = 800+'px'; a.style.width = 8 ...
分类:
其他好文 时间:
2020-06-19 16:22:37
阅读次数:
203
var t = document.getElementById("select1"); var selectValue=t.options[t.selectedIndex].value;//获取select的值 var t1 = document.getElementById("select2"); ...
分类:
Web程序 时间:
2020-06-19 11:57:31
阅读次数:
157
效果图: ##JS部分代码: <script> var input,containe; window.onload = function(){ input = document.getElementById('input'); container = document.getElementById( ...
分类:
Web程序 时间:
2020-06-18 21:46:56
阅读次数:
206
一、location 对象 location 主要用于获取与跳转链接(href)、获取地址返回的参数(search)等 提供了与当前窗口中加载的文档有关的信息,还提供了一些导航功能。location是一个很特别的对象, 因为它既是window对象的属性,也是document对象的属性,而且还可以单独 ...
分类:
其他好文 时间:
2020-06-18 21:21:30
阅读次数:
80