Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
在 Chrome 中使用 window.open 打开本地 HTML 文件
我想通过 Javascript 打开本地 HTML 文件 使用 window open file C Users wins Desktop exclusiveWordpress html mywindow 但它会打开一个带有空白页面的新窗口
javascript
Jasmine.js 测试 - 监视 window.navigator.userAgent
我需要找到改变的方法userAgent价值 我尝试过了spyOn the window navigator userAgent 但这没有帮助 JS Injectable export class DetectBrowserService b
angular
unittesting
jasmine
karmajasmine
spyon
您可以将 window.location 设置为带有 chrome:// 的页面吗?
我正在尝试将用户重定向到chrome settings 或者这实际上可以是带有chrome 前缀 但是window location chrome settings or window location chrome crash 不工作 有
javascript
使用 location.href 或 window.location.reload(true) 重新加载页面
我需要在 ajax 调用成功后重新加载页面 我看到一些代码 不是我的 有两种方法 success function obj code location href location href or success function obj c
javascript
reload
windowlocation
locationhref
检查窗口是否已经打开 window.open
我有一个 html 页面 在我调用的页面正文中onload调用 javascript 函数打开弹出窗口的事件 这是代码 var newWindow null function launchApplication if newWindow n
javascript
html
window.open 未应用给定的高度参数
我在链接上有一个 onclick 事件 其中执行了 url 的 window open 我还为其提供了自定义宽度和高度 但不接受它 并且弹出窗口以不同的宽度和高度显示 有人可以指导吗我这一定是哪里出了问题 我的 window open 语法
javascript
html
windowopen
什么是window.onpaint?
有人推荐here https stackoverflow com questions 6944037 how to run java script code before page load that window onpaint用于在页面
javascript
使用 window.print 内容将网页下载为 pdf
我想要一个链接 当单击该链接时 会自动开始下载网页的可打印版本 我正在使用Moodle 我想要的内容是完全相同的如果我使用 ctrl p 下载页面并保存为 pdf 或使用 a href Download web page a 我正是想要该内
javascript
php
pdf
moodle
window.location 的 .NET MVC jQuery 相对路径
我有一个非常简单的问题 但似乎无法弄清楚 由于 MVC 构建 URL 的方式 它包括所有路由信息 以下内容不起作用 我希望路径名仅返回虚拟目录路径 我所做的只是当用户从下拉列表中选择 ID 时重定向到不同的路由 document ready
jQuery
ASPNETMVC
screen.availHeight 和 window.height() 之间的区别
我正在我的浏览器 Firefox 上执行以下 Javascript console debug 屏幕高度 屏幕可用高度 输出770 console debug 窗口高度 窗口 height 输出210 我也在使用 jQuery 两者有什么区
javascript
jQuery
window
Document
window.resolveLocalFileSystemURL 与 window.requestFileSystem
使用上有什么区别window resolveLocalFileSystemURL vs window requestFileSystem使用 cordova 文件插件下载文件时 我找不到有关resolveLocalFileSystemURL
Cordova
fileapi
jQuery $(window).resize() 在减小窗口高度时不起作用
我有一个 id 为 main 的 div 我想使用 jQuery 设置它的高度并使其在window resize它的高度是使用函数修改的 但由于某种原因 它仅在增加窗口高度时才能正常工作 而在减小窗口高度时则不起作用 这是JS functi
javascript
jQuery
html
height
Application.Current.MainWindow 与 Window.GetWindow(this)
我需要访问托管给定控件的窗口 this在下面的代码片段中 假设我的应用程序中只有一个窗口 以下哪条语句占用的资源较少 或者是否有更好的方法来做到这一点 Application Current MainWindow Window GetWin
c
WPF
Scapy、Npcap、WinPcap 等库如何绕过 Window 对发送原始 TCP 数据包的限制?
在尝试自己用 Python 执行 TCP 握手之后 我惨痛地了解到现代 Windows 机器不允许通过原始套接字发送 TCP 数据 然而 Python 库 Scapy 似乎能够很好地做到这一点 其他库 如 Npcap 和 WinPcap 似
scapy
Winpcap
npcap
将
绑定到 `onbeforeunload`
我希望绑定到
Svelte
svelte3
IE 不会在使用 window.open 创建的窗口中加载 PDF
问题就在这里 仅发生在 Internet Explorer IE 中 我有一个页面 其中包含指向几种不同类型文件的链接 这些文件中的链接执行一个 Javascript 函数 该函数打开一个新窗口并加载特定文件 这非常有效 除非我需要在新窗口
javascript
internetexplorer
window
newoperator
windowopen
如何在提交表单时禁用“window.onbeforeunload”?
当我从浏览器关闭此页面时 会打开一个警告框 询问 离开此页面 或 留在此页面 没关系 但是 当从下面给出的 提交 按钮提交表单时 它会再次询问并显示此警报框 我如何在提交表单时禁用此功能 不应该询问并显示警报框
javascript
php
jQuery
html
Forms
window.location 和 document.location 有什么区别?
window location 和 document location 有什么区别 它们都应该引用同一个对象吗 根据 W3C 的说法 它们是相同的 实际上 为了跨浏览器安全 您应该使用window location而不是document l
javascript
windowlocation
如何用 POST 替换 window.open(...)
我目前有一些运行的代码window open urlWithGetParams 线 据我所知 这将迫使我使用GET要求 我想通过 POST 请求来完成此操作 有解决方法吗 我没有结婚window open 任何一个 我愿意接受任何允许我通过
javascript
html
用 typescript 重新定义 window.console
我的错误记录代码中有以下 javascript 它定义了console log for 某些浏览器不存在 https stackoverflow com questions 3326650 console is undefined erro
typescript
1
2
3
4
5
6
...41
»