当前位置:网站首页>JS to determine whether it is the first time to browse the web page
JS to determine whether it is the first time to browse the web page
2022-06-12 04:52:00 【MuQing】
if(document.cookie.indexOf("a=hello")==-1){
// ????alert(" Open for the first time !");
????var?t=new?Date(new?Date().getTime()+1000*60*60*24*30);
????document.cookie="a=hello;?expires="+t.toGMTString();
}else{
// ????alert(" Open again !");
this.advertisements=false
}Just use it directly in the load
边栏推荐
- Gao Xiang slam14 notes on three Lie groups and Lie algebra
- Bearpi IOT lighting LED
- Things to challenge
- cellular automaton
- New year news of osdu open underground data space Forum
- Force/release learning and sorting in IC Verification (6) research on the influence of wire type signals
- C# TaskFactory. Startnew method
- Enhanced vegetation index evi, NDVI data, NPP data, GPP data, land use data, vegetation type data, rainfall data
- 加速训练之并行化 tf.data.Dataset 生成器
- Betteland introduces milk products of non animal origin, which will be launched in the U.S. market in the near future
猜你喜欢

Redis learning notes (continuously updating)

存储器的保护

2022“高考记忆” 已打包完成,请查收!

How to deploy PostgreSQL as a docker container

Bearpi IOT serial port transceiver 1- normal mode

22-2-28 there are many things to do at work today, ETH analysis

SQL注入上传一句话木马(转)

Acquisition of Lai data, NPP data, GPP data and vegetation coverage data

kali_ Change_ Domestic source

National land use data of 30m precision secondary classification
随机推荐
LabVIEW关于TDMS和Binary存储速度
From science to startup
2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
How to generate provincial data from county-level data in ArcGIS?
C asynchronous programming (async and await) and asynchronous method synchronous invocation
Question for the 3D printing lattice?
Understanding of day16 array create query static and dynamic array array array performance in memory
New year news of osdu open underground data space Forum
Three. JS import model demo analysis (with notes)
[GIS tutorial] land use transfer matrix
Kwai opens a milestone activity for fans to record every achievement moment for creators
How to make datasets, train them into models and deploy them based on yolov5
1006 next spread
Zabbix6.0 new feature GEOMAP map marker can you use it?
Normalized vegetation index (NDVI) data, NPP data, GPP data, evapotranspiration data, vegetation type data, ecosystem type distribution data
Summary of common interview questions in redis
L1-064 AI core code valued at 100 million (20 points)
These programming languages are worth learning
Link: fatal error lnk1168: cannot open debug/test Solution of exe for writing
Solid programming concepts