01 2020 档案

摘要:效果图: 前端代码: <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>基于THINKPHP5实现红蓝投票功能</title> <style type="text/css"> .vote{width:288px; height:3 阅读全文
posted @ 2020-01-16 14:26 下页、再停留 阅读(673) 评论(0) 推荐(0) 编辑
摘要:在网上找的,效果如下 html代码 <!DOCTYPE html> <html lang="zh-CN"> <head> <title>flat-ui标签</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" conten 阅读全文
posted @ 2020-01-15 16:39 下页、再停留 阅读(956) 评论(1) 推荐(0) 编辑
摘要:第一种,POST 和 GET 合并 function http_curl($url, $type = 'get', $data = ''){ $cl = curl_init(); //初始化 curl_setopt($cl, CURLOPT_URL, $url); //设置 cURL 传输选项 cu 阅读全文
posted @ 2020-01-15 16:16 下页、再停留 阅读(1025) 评论(0) 推荐(0) 编辑
摘要:"^[0-9]*[1-9][0-9]*$" //正整数"^((-\d+)|(0+))$" //非正整数(负整数 + 0)"^-[0-9]*[1-9][0-9]*$" //负整数"^-?\d+$" //整数"^\d+(\.\d+)?$" //非负浮点数(正浮点数 + 0)"^(([0-9]+\.[0- 阅读全文
posted @ 2020-01-03 15:21 下页、再停留 阅读(382) 评论(0) 推荐(0) 编辑
摘要:在使用each()时,each()里面只能使用局部变量,当使用外部变量时会报未定义变量的错误,但是有时候我们还必须使用外部变量,就需要想是时作用域的问题,但是如果使用 global 全局虽然不报错,但是打印出来是 null ,所以最终使用 use 解决, 如果在函数中需要修改变量的值,会发现在函数内 阅读全文
posted @ 2020-01-03 15:14 下页、再停留 阅读(3805) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示