问题标签 [auto-lock]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
35 浏览

excel - Set password when closing

I'm trying to lock all sheets with a password when closing a workbook, but allow filtering and searching on tables.

I managed to gather the following which works other than setting the password.

*** = password
The above auto locks worksheets and allows filtering as needed but doesn't set the password.

Excel for office 365, win10 enterprise.

0 投票
0 回答
32 浏览

node.js - 从 socket.on('disconnect' 中触发 window.close

如果我的问题显得无知,我正在学习javascript的每个人都提前道歉。

我正在使用套接字编写一个在线交互式测验应用程序。它运作良好。但是,我发现如果用户的移动设备进入自动锁定模式,那么 websocket 就会断开连接,即使当用户再次触摸设备时屏幕仍然可用。我不想重新连接套接字,因为我正在使用 socket.id 来建立在线用户数组。

对不起序言 - 这是我的问题。一旦 websocket 断开连接,有没有办法以编程方式关闭窗口?我在下面尝试的一些示例代码。这会引发异常:“ReferenceError:未定义窗口”我知道窗口。命令在 socket.on 函数之外工作,因此假设它不能在其中调用。

无论如何,我欢迎任何关于解决方案的见解、建议和示例,以帮助我学习。

非常感谢,SJM72

代码摘录:

0 投票
0 回答
4 浏览

auto-lock - 在 MS 访问中输入数据后如何自动锁定字段

我是数据库新手。我有一个 MS 访问数据库,其中包含 BBF 字段或余额(数字字段)。我希望一旦在其中输入值,它应该自动锁定,以便无法编辑或填充数据。有人可以建议我解决方案。谢谢