会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大熊童鞋
世界上最美的风景,是自己努力的模样
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
28
下一页
2021年1月13日
替换字符串中间部分为*
摘要: /** * 使用$replace替换字符串的中间部分 */ function replaceCenterWithChar($str, $replace = "*", $leftLen = 2, $rightLen = 2, $replaceLen = 3) { $length = mb_strlen
阅读全文
posted @ 2021-01-13 10:03 大熊童鞋
阅读(1242)
评论(0)
推荐(0)
2021年1月9日
tp3.2中between的用法
摘要: $year = date("Y"); $month = date("m"); $day = date("d"); $start = mktime(0,0,0,$month,$day,$year);//当天开始时间戳 $end= mktime(23,59,59,$month,$day,$year);/
阅读全文
posted @ 2021-01-09 10:45 大熊童鞋
阅读(1309)
评论(0)
推荐(0)
2021年1月6日
PHP中的$this用法
摘要: <?php class test{ function abc(){ return '123'; } } header("Content-type: text/html; charset=utf-8"); $servername = 'localhost'; $username = '*****';
阅读全文
posted @ 2021-01-06 10:19 大熊童鞋
阅读(405)
评论(0)
推荐(0)
2021年1月2日
PhpStorm中实现代码自动换行
摘要: 方法一: 随便打开一个页面,在显示行号(最左边)这里鼠标右击,勾选"Use Soft Wraps"。 方法二: 选择"File-->>Settings-->>Editor-->>General",进入页面后,勾选"Use soft wraps in editor"。 phpstorm 2019自动换
阅读全文
posted @ 2021-01-02 14:18 大熊童鞋
阅读(622)
评论(0)
推荐(0)
2020年12月31日
tp3.2 and or的复合查询
摘要: $where['user_id'] = $user_id;$where['buy_id'] = $user_id;$where['_logic'] = 'or';$map['_complex'] = $where;$map['trade_type'] ='1';$map['status'] = ar
阅读全文
posted @ 2020-12-31 09:31 大熊童鞋
阅读(377)
评论(0)
推荐(0)
2020年12月28日
JavaScript获取输入框内容
摘要: <div class="fk_ban fk_ban1" style="width: 25%;margin: 10px 0;line-height:auto">买多少:</div> <div style="width: 70%;float: left;margin: 10px 0;word-break
阅读全文
posted @ 2020-12-28 16:52 大熊童鞋
阅读(1466)
评论(0)
推荐(0)
html 字体大小自适应
摘要: 文字自适应在html页面加入 <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'> <meta name='apple-mobile-web
阅读全文
posted @ 2020-12-28 10:08 大熊童鞋
阅读(1376)
评论(0)
推荐(0)
2020年12月27日
outerHTML获取本标签全部内容
摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 info='
阅读全文
posted @ 2020-12-27 23:01 大熊童鞋
阅读(142)
评论(0)
推荐(0)
document.forms对象集合
摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <form acti
阅读全文
posted @ 2020-12-27 22:58 大熊童鞋
阅读(66)
评论(0)
推荐(0)
document.anchors锚点
摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <p><a href
阅读全文
posted @ 2020-12-27 22:55 大熊童鞋
阅读(107)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
18
19
···
28
下一页
公告