当前位置:网站首页>JS prevent the PC side from copying correct links
JS prevent the PC side from copying correct links
2022-06-23 00:44:00 【Ziwei front end】
if (!/Mobi|Android|iPhone/i.test(navigator.userAgent)) {
var json = {
time: new Date().getTime()
};
var href = location.href;
// To be homologous
window.history.pushState(json, "", "http://oa.xxxxx.com/ Prohibit copying links ");
window.onbeforeunload = function(e) {
window.history.pushState(json, "", href)
}
}边栏推荐
- 層次選擇器
- BGP联邦综合实验
- [go] go polymorphism
- Is Ruida futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
- 因为我说:volatile 是轻量级的 synchronized,面试官让我回去等通知!
- Flowable global listener monitors the start and end of a process
- Figure what are the uses and applications of neural networks?
- Sélecteur de hiérarchie
- 如何入门机器学习?
- SAP mm transaction code vl04 create outbound delivery for sto
猜你喜欢

3DMAX modeling notes (I): introducing 3DMAX and creating the first model Hello World

SAP UI5 应用开发教程之一百零三 - 如何在 SAP UI5 应用中消费第三方库试读版

How to solve the problem that easycvr does not display the interface when RTMP streaming is used?

What is the storage structure and mode of data in the database?

Read Amazon memorydb database based on redis

SAP UI5 应用开发教程之一百零二 - SAP UI5 应用的打印(Print)功能实现详解

cadence SPB17.4 - 中文UI设置

New progress in the construction of meituan's Flink based real-time data warehouse platform

62. 不同路径

Quelle est la structure et la façon dont les données sont stockées dans la base de données?
随机推荐
详解openGauss多线程架构启动过程
層次選擇器
股票在哪个平台买比较安全呢?
OLAP - Druid introduction
Installation record of ros1noetic in Win 11
Swiftui swift tutorial 14 useful array operators
Have you stepped on these pits? Use caution when creating indexes on time type columns
How to calculate the position of gold ETF
【滑动窗口】leetcode992. Subarrays with K Different Integers
3 big questions! Redis cache exceptions and handling scheme summary
How about precious metal spot silver?
[sliding window] leetcode992 Subarrays with K Different Integers
最安全的现货白银的心理分析
[go] go polymorphism
Psychological analysis of the safest spot Silver
Mysql8.0 easily completes gtid master-slave replication
每日刷题记录 (一)
Graphite statsd interface data format description
EasyCVR使用RTMP推流时不显示界面如何解决?
62. 不同路径