08 2019 档案
摘要:1.为什么会用到cookie和session 由于http请求是一种无状态的请求,一旦数据交换完毕便会关闭请求,再次交换数据则要再次发起请求,所以服务端无法通过连接追踪会话,确定用户身份,而cookie和session则可以帮助服务端确定用户身份。 2.cookie运行流程 第一次登陆的时候,服务器
阅读全文
摘要:只需要三行代码,写到入口文件public/index.php处即可解决 header("Access-Control-Allow-Origin:*"); header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE"); header
阅读全文
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title><script>function a(){ document.getElementById("a").innerHTML=111111;}</script></head><
阅读全文
摘要:<!DOCTYPE HTML> <html> <head> <meta charset=UTF-8> <title></title> </head> <body> <style type="text/css"> #rotate3D { width: 80px; height: 70px; color: white; position: relative; font-weight: bold; fo
阅读全文
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title></head><style>#myProgress { width: 100%; height: 30px; position: relative; background-
阅读全文
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title></head><body> <button onclick="stopColor()">停止切换</button> <script>var myVar = setInter
阅读全文
摘要:<!DOCTYPE html> <html> <head> <style> .anim{ width: 100px; height: 100px; background-color: red; } .anim-show { transition: 0.7s; transform:translate(100px,100px) scale(1.5); } .anim-show1 { transitio
阅读全文
摘要:<!DOCTYPE html> <html> <head> <style> .anim-show { width:100px; height:100px; background:red; position:relative; animation-name:mymove; animation-duration:5s;/* 5s表示执行动画的时间,0或不写则无动画效果 */ /* 兼容调试如果anim
阅读全文