上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 44 下一页
摘要: 1,设置cookie ①只传递一个参数是删除,原理:设置过期时间为一个过去时间 ②传递两个参数是设置cookie ③传递第三个参数是设置过期时间,不传递就是 会话级别的 cookie (关闭浏览器会自动删除); ④设置响应头中的 Set-Cookie 可以下发小票(给客户端) ⑤Cookie 在客户 阅读全文
posted @ 2019-10-01 19:53 shanlu 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 1,html页面 index.html 2,下一步,从数据库中提取数据 ( php代码) ①建立连接 ②开始查询 ③遍历结果集 3,下一步,将打印出来的数据呈现在页面上(保留 tbody 中的一个tr ,删除其他的 tr , 通过循环遍历将打印出来的数据 插入到 tr 中) 4,删除功能实现 删除是 阅读全文
posted @ 2019-09-30 16:07 shanlu 阅读(1068) 评论(0) 推荐(0) 编辑
摘要: 1,html页面 2,接下来需要提取数据库里面的数据,遍历,并呈现在这个页面上 阅读全文
posted @ 2019-09-30 09:17 shanlu 阅读(1850) 评论(0) 推荐(0) 编辑
摘要: 1,建立与数据库之间的连接 (能通过php代码执行一个SQL语句得到查询的结果) 这里要注意两个问题: ①mysqli 是一个额外的扩展,如果想要使用这个扩展提供的函数,必须开启扩展 extension_dir 在php 的配置文件里解除注释 extension=php mysqli.dll (这里 阅读全文
posted @ 2019-09-29 22:59 shanlu 阅读(1858) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> .div{ color:yellow; padding:30px; font-size:80px } </style> </head> <body> <div id='div'> </div> </body> &l 阅读全文
posted @ 2019-09-28 22:30 shanlu 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 使用 extend 改造 $$.hover('div' , function(){ } , function(){ } ) ; 阅读全文
posted @ 2019-09-28 22:15 shanlu 阅读(170) 评论(0) 推荐(0) 编辑
摘要: demo.php a.php 阅读全文
posted @ 2019-09-28 18:27 shanlu 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 这里是在响应头中添加一个 location 的头信息 客户端浏览器在接收到这个头信息过后会自动跳转到 指定的地址 切记不能循环重定向 阅读全文
posted @ 2019-09-28 18:19 shanlu 阅读(4393) 评论(0) 推荐(0) 编辑
摘要: PHP中 header 函数 专门用于设置响应头 ①content-type: text/html ②content-type : text / css ③content-type : application/javascript ③charset = GBK 阅读全文
posted @ 2019-09-28 17:49 shanlu 阅读(219) 评论(0) 推荐(0) 编辑
摘要: type属性为 file 的 input 元素可以通过表单提交文件(上传文件),服务端PHP可以通过$_FILES获取上传的文件信息 ①如果一个表单中有文件域(文件上传),必须将表单的 method 设置为 post , enctype 设置为 multipart / form-data ②接收文件 阅读全文
posted @ 2019-09-25 21:11 shanlu 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 44 下一页