随笔分类 -  d-网页编程

4545
摘要:<?php /* demo */ $tf = new TwentyFourCal(); $tf->calculate( array(5,5,5,5) ); $tf->calculate( array(2,4,10,10) ); $tf->calculate( array(4,4,10,10) ); 阅读全文
posted @ 2024-06-01 01:52 onestopweb 阅读(21) 评论(0) 推荐(0)
摘要:注意:同样存在少数计算不出24的现象,不过已经接近完善了 <?php set_time_limit(0); $values = array(2, 4, 10, 10); $result = 24; $list = array(); echo "<pre>"; @makeValue($values); 阅读全文
posted @ 2024-06-01 01:40 onestopweb 阅读(23) 评论(0) 推荐(0)
摘要:注意:有些计算24点的数字无法计算出来。不建议使用。 <?php function calculate24($nums) { $operators = ['+', '-', '*', '/']; $combinations = []; foreach ($nums as $num1) { forea 阅读全文
posted @ 2024-05-31 23:42 onestopweb 阅读(39) 评论(0) 推荐(0)
摘要:{ "ignored_packages": [ ], "index_files": true, "theme": "Default.sublime-theme", "color_scheme": "Packages/Color Scheme - Default/Breakers.sublime-co 阅读全文
posted @ 2024-05-31 23:26 onestopweb 阅读(21) 评论(0) 推荐(0)
摘要:下载地址:https://hsk.oray.com/ 使用方法如下: 第一步:进入贝锐花生壳的内网穿透的页面 第二步:选择映射协议映射协议https 第三步:输入外网域名,默认端口443 第四步:输入内网域名:192.168.1.160,默认端口80 第五步:提交后诊断映射通过就可正常访问 效果图: 阅读全文
posted @ 2024-05-31 22:44 onestopweb 阅读(35) 评论(0) 推荐(0)
摘要:下载链接:https://www.xp.cn/download.html 选择安装的版本: PHP 7.3.4nts MySQL 5.7.26 Apache 2.4.39 效果图: 阅读全文
posted @ 2024-05-31 22:29 onestopweb 阅读(19) 评论(0) 推荐(0)
摘要:/*隔行变色*/ .m-tb2n tr:nth-child(2n){ background-color:#f9f9f9;} .m-tb2n tr:hover{ background-color:#f2f2f2;} .m-tb4n tr:nth-child(4n+3),.m-tb4n tr:nth-c 阅读全文
posted @ 2024-05-30 21:19 onestopweb 阅读(10) 评论(0) 推荐(0)
摘要:点击查看代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <tit 阅读全文
posted @ 2024-05-30 05:02 onestopweb 阅读(20) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <title>管理员登 阅读全文
posted @ 2024-05-30 04:54 onestopweb 阅读(21) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <title>JS 特 阅读全文
posted @ 2024-05-30 02:14 onestopweb 阅读(23) 评论(0) 推荐(0)
摘要:pc模板 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>测试</title> </head> <body> </body> </html> mb模板 <!DOCTYPE html> <html> <head> <meta ch 阅读全文
posted @ 2024-05-30 02:04 onestopweb 阅读(120) 评论(0) 推荐(0)
摘要:\begin{array}\ {\mathop{{a}}\nolimits^{{2}}+\mathop{{b}}\nolimits^{{2}}=\mathop{{c}}\nolimits^{{2}}} \end{array} 转义为: <math xmlns="http://www.w3.org/1 阅读全文
posted @ 2024-05-30 01:47 onestopweb 阅读(258) 评论(0) 推荐(0)
摘要:/* * -- 样式说明 -- * 最大优先实现法,全局能实现不用区域,区域能实现不用模板, * 模板能实现不用界面,界面能实现不用标签 * g - 全局 * t - 区域 * m - 模板 * ui - 界面 * lb - 标签 * 特殊标签 * j - 脚本 * fix - 浮窗 * is - 阅读全文
posted @ 2024-05-22 17:09 onestopweb 阅读(49) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <title>后台首页 阅读全文
posted @ 2024-05-22 16:51 onestopweb 阅读(114) 评论(0) 推荐(0)
摘要:官网下载 下载地址:http://editor.md.ipandao.com JS引入新建文件夹md,将下载好的文件引入过来, 新建方法视图文件 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-C 阅读全文
posted @ 2024-05-22 16:38 onestopweb 阅读(211) 评论(0) 推荐(0)
摘要:<?php /* demo */ $tf = new TwentyFourCal(); $tf->calculate( array(4,8,8,8) ); $tf->calculate( array(10,10,4,4) ); $tf->calculate( array(4,4,4,4) ); $t 阅读全文
posted @ 2024-05-22 16:36 onestopweb 阅读(28) 评论(0) 推荐(0)
摘要:<?php header('Content-Type: text/html; charset=utf-8'); define ('ROOT', $_SERVER['DOCUMENT_ROOT']); include ROOT.'/assets/php/head.php'; /** * explode 阅读全文
posted @ 2024-05-22 16:32 onestopweb 阅读(27) 评论(0) 推荐(0)
摘要:直角三角函数的定义: 正弦(sin)等于对边比斜边;sinA=a/c ; 余弦(cos)等于邻边比斜边;cosA=b/c ; 正切(tan)等于对边比邻边;tanA=a/b ; 余切(cot)等于邻边比对边;cotA=b/a; <?php header('Content-Type: text/htm 阅读全文
posted @ 2024-05-22 16:30 onestopweb 阅读(149) 评论(0) 推荐(0)
摘要:<?php header('Content-Type: text/html; charset=utf-8'); define ('ROOT', $_SERVER['DOCUMENT_ROOT']); include ROOT.'/assets/php/head.php'; //PHP 向数组插入元素 阅读全文
posted @ 2024-05-22 16:29 onestopweb 阅读(74) 评论(0) 推荐(0)
摘要:<?php header('Content-Type: text/html; charset=utf-8'); define ('ROOT', $_SERVER['DOCUMENT_ROOT']); include ROOT.'/assets/php/head.php'; //逻辑运算符 /** * 阅读全文
posted @ 2024-05-22 16:28 onestopweb 阅读(22) 评论(0) 推荐(0)