摘要: <!DOCTYPE html> <html> <head> <title>JavaScript对象转JSON字符串</title> </head> <body> <script> var jsonObj = { "userId": "admin", "password": "123456", "co 阅读全文
posted @ 2022-10-03 15:40 怪圣卡杰 阅读(23) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <title>本地存储</title> <script> function setSessionStorage() { //添加sessionStorage var name = document.getElementById("setSe 阅读全文
posted @ 2022-10-03 15:10 怪圣卡杰 阅读(434) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Cookies</title> </head> <head> <script> // 设置cookie function setCookie(cname, cvalue, exda 阅读全文
posted @ 2022-10-03 13:33 怪圣卡杰 阅读(39) 评论(0) 推荐(0) 编辑