上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页
摘要: # Number(数字) counter = 100 # 整型变量 miles = 1000.0 # 浮点型变量 num_complex = complex(1.5, 2.5) print(counter) # 100 print(miles) # 1000.0 print(num_complex) 阅读全文
posted @ 2023-09-08 16:55 carol2014 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 脚本最大执行时间、内存限制 ini_set("memory_limit","128M"); // 关闭内存限制 ini_set('memory_limit', '-1'); ini_set('max_execution_time', 30000); // 关闭时间限制 ini_set("max_ex 阅读全文
posted @ 2023-09-01 16:20 carol2014 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 偶然听到一个需求,一个web应用需要部署到不同的两个网段中,连接同一台数据库server(双网卡,可以同时连接不同的两个网段),如何实现部署到不同网段中不用修改数据库连接?假设连个网段的web server同时包含linux和windows系统 简单的想法:测试网络连接,如果连不上一个ip就去连接另 阅读全文
posted @ 2023-09-01 15:59 carol2014 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 经常会用到一些数据验证效验的东西,有些结果是“真是没想到”,总结记录下 浮点数 var_dump((float)'', (float)'dd4.5', (float)'4.5dd', (float) '4.5'); float(0) float(0) float(4.5) float(4.5) va 阅读全文
posted @ 2023-09-01 14:24 carol2014 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 记录下常用的laravel数据库操作 多个数据库连接 DB::connection('foo')->select(...); 底层PDO 实例 $pdo = DB::connection()->getPdo(); 执行原生SQL $users = DB::select('select * from 阅读全文
posted @ 2023-09-01 10:14 carol2014 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 最近要把一个长表格改成表头不随滚动向上滚动而是固定,复习下css的定位知识,记录下 <style> .box { border: 1px solid silver; position: relative; height: 200px; width: 300px; overflow: auto; } 阅读全文
posted @ 2023-09-01 09:47 carol2014 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 模板 //定义布局 <html> <head> <title>App Name - @yield('title')</title> </head> <body> @section('sidebar') This is the master sidebar. @show //@show 则在定义的同时 阅读全文
posted @ 2023-08-30 14:25 carol2014 阅读(4) 评论(0) 推荐(0) 编辑
摘要: jquery ui 基于Jquery的开源网页用户界面代码库,其中的交互效果包括缩放(Resizable) , 拖动(Draggable) , 放置(Droppable) , 选择(Selectable) , 排序(Sortable)等非常好用,日期选择器到现在为止仍然很好用。 <script sr 阅读全文
posted @ 2023-08-30 13:51 carol2014 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 最近要写消息持续向上滚动效果,记录下 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1 阅读全文
posted @ 2023-08-30 10:29 carol2014 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 最近领导给了个需求:一个web页面header和footer的部分不能随浏览器zoom in/out 改变样式及字体大小。 分析了需求和查阅相关资料后,写个demo,实现了整个页面不随ctrl+(+/-) 组合键或者ctrl+鼠标滚轮 缩放的效果,对于浏览器工具/设置的缩放没有效果。 键盘/鼠标事件 阅读全文
posted @ 2023-08-11 15:18 carol2014 阅读(107) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页