【任务3】让网站拥有短暂的记忆
一、要求:
1、第一次打开网站时,页面展示嗨,欢迎您来到 from zero to expert.
2、24小时内再次打开页面时,页面展示嗨,欢迎您再次到 from zero to expert.。24小时后再次打开,则就依然当作首次对待。
由于项目还没有用到数据库之类的,所以不要用数据库之类的哈,最简单的方式就是可以在html页面,用 Js 来操作 cookie,然后控制html页面元素的值。当然,你要在后端代码操作也是可以的。
二、打卡内容
1、说出你在cookie中设置的 key value
2、找到你浏览器中cookie文件的存放路径,并且把路径贴出来。
本问题对应的项目链接:从0设计一个web项目
共以下 26 个回答
1.key = “first” value= “encodedValue”
2.C:\Users\zouliang\AppData\Local\Microsoft\Edge\User Data\Default\Network
3.https://github.com/CurryisCoat/community/tree/dev
1.key = “visitor ” value= “encodedValue“
2.C:\Users\无解肥旭旭\AppData\Local\Microsoft\Edge\User Data\Default\Network
3.https://github.com/wujiefeixuxu/firstWebProject/tree/dev
键值times: 2
C:\Users\ALIENWARE\AppData\Local\Google\Chrome\User Data\Default\Network
key = “remember”, value = “1”
路径:C:\Users\ASUS\AppData\Local\Google\Chrome\User Data\Default\Network
Github:https://github.com/Egofir/ferry
1、键值:visit = 1
2.cookie文件路径: C:\Users\asus\AppData\Local\Google\Chrome\User Data\Default\Network
3.github: https://github.com/DreamSky8/FromZerotoExpert/tree/dev
1:键值:user = 1
2:路径:C:\Users\admin\AppData\Local\Google\Chrome\User Data\Default\Network
3:https://github.com/majianiw/FromZerotoExpert/tree/dev
1.K-V: token=随机六位数字
2.cookie文件的存放路径:C:\Users\suen\AppData\Local\Google\Chrome\User Data\Profile 1\Network
3.gitHub路径:https://github.com/lucca-suen/FromZerotoExpert/tree/dev
gitHub防覆盖路径:https://github.com/lucca-suen/FromZerotoExpert/tree/v1.3
1.键值:visited
2.路径:C:\Users\caesar\AppData\Local\Google\Chrome\User Data\Default\Network
3.github路径:https://github.com/Caesar-NoBug/FromZerotoExpert/tree/day3
1.键值 : login=TRUE
2.路径:C:\Users\Yx_Gg\AppData\Local\Google\Chrome\User Data\Default\Network
3.GitHub:https://github.com/Guat0305/FromZerotoExpert/tree/dev
1.键值:exist=first
2.路径:C:\Users\21124\AppData\Local\Microsoft\Edge\User Data\Default\Network
3.https://github.com/ZLPYYDS/FromZerotoExpert/tree/dev
1,键值:yhz=1
2,路径:C:\Program Files (x86)\Microsoft\Edge\Application\105.0.1343.42
3,GitHub路径:https://github.com/lesseryao/FromZerotoExpert/tree/dev
1、键值:isFirst=fromzerotoexpert
2、路径:C:\Users\rongyao\AppData\Local\Google\Chrome\User Data\Default\Network
3、GitHub:https://github.com/zjs559/FromZerotoExpert/tree/dev
1.键值对:firstVisited=1
2.路径:/Users/admin/Library/Application Support/Google/Chrome/Default
3.github:https://github.com/ynufehmh/FromZerotoExpert/tree/dev
C:\Users\...\AppData\Local\Google\Chrome\User Data\Default\2.路径: C:\Users\Lenovo\AppData\Local\Google\Chrome\User Data\Default\Network
3.github: https://github.com/shuaishuaixi03/FromZerotoExpert/tree/dev
1.键值:userName = Dean
2.路径:/Users/Dean/Library/Application Support/Google/Chrome/Default
3.Github路径:https://github.com/BigDeann/FromZerotoExpert/tree/dev
1.cookie中设置的 key value:key=flag,value = true
2.cookie文件的存放路径:C:\Users\华硕\AppData\Local\Google\Chrome\User Data\Default
3.gitHub路径:https://github.com/Second6s9/FromZerotoExpert/tree/dev
gitHub防覆盖路径:https://github.com/Second6s9/FromZerotoExpert/tree/day03
键值:key=lastTime,value = str_date
路径:/Users/HZX/Library/Application Support/Google/Chrome/Default
github:https://github.com/zzxjava/FromZerotoExpert/tree/dev
服务器链接:http://124.223.184.187:8088/FromZerotoExpert
Github仓库链接:https://github.com/jiangyklala/FromZerotoExpert/tree/dev
cookie:accessed=0
路径:C:\Users\jh\AppData\Local\Google\Chrome\User Data\Default\Network
https://github.com/yijixin66/FromZerotoExpert/tree/dev
1.键值:visited
2.路径:C:\Users\Kloro\AppData\Local\Google\Chrome\User Data\Default
3.GitHub路径:https://github.com/Tempest-101/FromZerotoExpert/tree/dev
2.路径:/Users/sunhaiyang/Library/Application Support/Google/Chrome/Default
3.github:https://github.com/Haiyang-coder/FromZerotoExpert/tree/dev