BOM(Browser Object Model)是指浏览器对象模型,它使 JavaScript 有能力与浏览器进行“对话”。 DOM (Document Object Model)是指文档对象模型,通过它,可以访问HTML文档的所有元素。 ——BOM相关操作—— 一、windows对象 二、win ...
分类:
其他好文 时间:
2020-05-18 14:38:58
阅读次数:
54
文件路径的定义 以root方式设置资源路径 语法:root path; 默认:root html; 配置块:http、server、location、if location /data/ { root /web/html; } 如果请求的URI是/data/index/test.html,那么web ...
分类:
其他好文 时间:
2020-05-18 14:08:37
阅读次数:
62
1问题概述首先是javafx找不到对应的类:其次是classcom.sun.javafx.fxml.FXMLLoaderHelper(inunnamedmodule@0x50f36265)cannotaccessclasscom.sun.javafx.util.Utils(inmodulejavafx.graphics)becausemodulejavafx.graphicsdoesnotexpo
分类:
其他好文 时间:
2020-05-18 09:23:44
阅读次数:
62
http状态码是web开发中经常会用到的一个东西,前几天无意中看到一个url返回一个307的状态码,我一眼看着挺新鲜,就搜刮了一下相关知识,发现还挺有用,特此记录。 3xx的状态码都是重定向,那么307,303,302的重定向都有啥区别捏,我们先看一下各自的定义 307 Temporary Redi ...
分类:
Web程序 时间:
2020-05-16 19:15:36
阅读次数:
93
springboot项目 resources/js/pdf/web/viewer.html是要被访问到的,不能被过滤器过滤。 1、前端页面 $('#proBase').click(function () { var curWwwPath=window.document.location.href; ...
分类:
Web程序 时间:
2020-05-16 18:33:12
阅读次数:
243
function GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr( ...
分类:
Web程序 时间:
2020-05-16 17:01:00
阅读次数:
73
avaScript 跳转方法一:<script language="javascript"> window.location = "http://www.baidu.com";</script>方法二:<script language="javascript"> document.location ...
分类:
其他好文 时间:
2020-05-16 15:09:46
阅读次数:
61
1、官网上下载allure压缩包,解压到本地文件夹(文件夹尽量为英文并且路径简单) 2、添加PATH环境变量 进入allure文件夹的bin目录下,会看到allure.bat文件,将此路径设置为系统环境变量path下 3、校验是否安装成功 在cmd中运行 allure命令,如下图所示即为安装成功 与 ...
分类:
编程语言 时间:
2020-05-16 14:03:16
阅读次数:
309
声明es import elasticsearch6 es = elasticsearch6("10.10.10.10:9200") #查看当前所有仓库 es.snapshot.get_repository() #删除已存在的仓库(假设已存在的仓库叫"beifen") es.snapshot.del ...
分类:
其他好文 时间:
2020-05-15 20:36:14
阅读次数:
88
首先在百度站长接入自己的网站,然后在每个网页里加入代码 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curP ...
分类:
Web程序 时间:
2020-05-15 16:12:31
阅读次数:
83