![](https://img-blog.csdnimg.cn/20210503153049385.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
WEB开发
WEB开发
杭杭爸爸
热爱生活。
展开
-
fastadmin js加载插件 会导致 bindevent undefend错误 ,表单无法提交,显示也报错。
不知道引用名称的话,引用名称就放最后面,别影响对应顺序。插件后面是要有引用名称的,原创 2023-01-06 15:42:19 · 327 阅读 · 0 评论 -
fastadmin增加上传文件类型,修改格式限制
/application/extra/upload.php原创 2022-09-16 11:13:14 · 2263 阅读 · 1 评论 -
ckeditor添加表单功能 ,给每个表单元素添加自定义属性(待完成)
www/wwwroot/xxxxx.xxxx.com/public/assets/libs/ckeditor/plugins/forms/dialogs/ 68行。原创 2022-08-25 10:34:43 · 251 阅读 · 0 评论 -
七牛图片访问参数(缩略图小尺寸啥的,避免浪费流量)
timthumb.php是一个专门为WordPress开发的缩略图应用项目,为了使主题缩略图内容大小一致,越来越多的主题开始使用timthumb。但是timthumb要求主机支持GD库,且缩略图是动态生成缓存到服务器的,会消耗一定的服务器资源。如果站点图片文件过多,会对服务器负载造成很大的影响。建议使用七牛缩略图高级处理imageMogr2的thumbnail功能替代timthumb.php缩略图,以达到缓解服务器压力,加速图片访问的目的。文章源自堕落的鱼-https://www.duoluodeyu.co原创 2022-06-06 09:13:39 · 1675 阅读 · 0 评论 -
程序员值得收藏的几款代码截图美化工具播
现在很多程序员都有自我学习和总结的习惯,也喜欢把自己的心得分享给大家,这就涉及到大量的代码展示,单纯的堆积出来不好看,如果有一款好用的代码截图美化工具,就yyds了,今天就给大家分享小编知道的几款代码截图美化工具。是一款让你生成十分漂亮的代码片段截图的在线工具,共有8种配色,可设置隐藏或显示背景,支持暗黑模式和各种预设的语言主题,让你分享的代码更优雅。也可以使用它的VSCode扩展插件。Codepng 也是一款可以把你的代码变成漂亮图片的在线工具,由开发者 Henri Parviainen 创建,主要支持原创 2022-05-31 22:38:27 · 598 阅读 · 0 评论 -
layui 中解决select onchange事件无效
layui将select改造了,所以直接写onchange无效,代之可以使用lay-filter属性<div class="layui-col-xs4 layui-col-sm4 layui-col-md4"> <div class="layui-form-item "> <label class="layui-form-label">发票类型</label> <div class="layui...原创 2022-05-31 08:46:40 · 5254 阅读 · 2 评论 -
layer.prompt
layer.open({ //formType: 2,//这里依然指定类型是多行文本框,但是在下面content中也可绑定多行文本框在这里插入代码片 title: '是否确信将账号临时挂账?', area: ['300px', '240px'], btnAlign: 'c', closeBtn:'1',//右上角的关闭 content: `<div><p>备注:</p><textarea name="txt_remark" id="remark" st.原创 2022-05-23 20:40:17 · 704 阅读 · 0 评论 -
根据文字生成字符画
根据文字生成字符画:http://patorjk.com/software/taaghttp://www.network-science.de/ascii/根据图片生成字符画:http://www.degraeve.com/img2txt.phphttp://life.chacuo.net/convertphoto2char根据流程图生成字符画:http://asciiflow.com/...原创 2022-05-18 11:18:24 · 1135 阅读 · 0 评论 -
AlloyLever 手机调试如何使用
AlloyLever腾讯出的,牛1kb(gzip)代码搞定开发调试发布,错误监控上报,用户问题定位。支持错误监控和上报 支持vConsole错误展示 支持开发阶段使用vConsole 支持生产环境机关拉取vConsole 支持预埋机关唤起 支持url带参数唤起url带参数唤起有两个目的,第一是方便网站开发过程中显示vConsole面板,第二是发给投诉反馈网站错误的用户显示vConsole面板用于定位错误。安装npm install alloyleverCDN地址下...原创 2022-05-16 16:37:32 · 189 阅读 · 0 评论 -
layui + tp5分页(非数据表格渲染形式)
1.首先找到分页类 路径:\thinkphp\library\think\paginator\driver2 新建Layui.php <?phpnamespace think\paginator\driver;use think\Paginator;class Layui extends Paginator{ /** * 上一页按钮 * @param string $text * @return string */ p..原创 2022-03-04 23:25:37 · 306 阅读 · 0 评论 -
TP5.0+分页
$orderlist = Db::name("pay_order")->where($sql)->order("id", "desc") ->paginate(10);$pagestr= $orderlist->render(); $this->assign('pagestr', $pagestr); <style type="text/css"> .pagination li{list-style:none;float:lef.原创 2022-02-19 17:05:47 · 258 阅读 · 0 评论 -
tp5中用find_in_set thinkphp5中find_in_set的使用方法 精确匹配,字段值以英文豆号”,”分隔查询
最新解决方案:对于一些实在复杂的查询,比如find_in_set,也可以直接使用原生SQL语句进行查询,例如: 1 2 3 Db::table('think_user') ->where('find_in_set(1,sids)') ->select(); 为了安全起见,我们可以对字符串查询条件使用参数绑定,例如: 1 2 3 Db::table('...原创 2021-11-03 16:22:01 · 855 阅读 · 0 评论 -
thinkphp 模块前台view使用config
初始化公共方法: public function initialize() { $this->assign("configdashuju",config('dashuju.')); }原创 2021-09-08 15:01:28 · 234 阅读 · 0 评论 -
fastadmin前台用户登陆时间设置为永久不过期 expire
/application/index/controller/user.phpHook::add('user_login_successed', function ($user)use ($auth) { $expire =30 * 86400*5000;//在这里设置为5000天 Cookie::set('uid', $user-> id, $expire); Cookie::set('token',...原创 2021-09-08 10:12:02 · 2681 阅读 · 3 评论 -
小程序 TP5.0支付
必须开通微信支付里面的 jsapi业务开通地址:https://pay.weixin.qq.com/index.php/public/product/detail?pid=30需要准备: $appid='wxde0e470*********'; //小程序 appid $openid= $_POST['id'];// 用户openid 小程序login获得 $mch_id='160346****'; //微信支付商户支付号 $key...原创 2021-08-21 15:57:33 · 448 阅读 · 1 评论 -
TP5分页
后台代码: /** * 列表 */ public function index() { $data = db("wxartlist")->paginate(20); //总计条数数据 $this->assign("data", $data); if(!input("page")){ $list= db("wxartlist"原创 2021-08-18 12:40:05 · 80 阅读 · 0 评论 -
海康API——获取监控点预览取流URL,获取的rtmp流不能播放
取rtmp流时,不要expand这一句原创 2021-08-12 12:36:54 · 2271 阅读 · 1 评论 -
fastadmin mysql字段类型为set 自动生成下拉框
教程地址:https://doc.fastadmin.net/docs/database.html数据库文档最后更新时间:2019-12-27 21:40:15这里提供的是数据库表字段规则在你创建表时使用,当按如下的规则进行字段命名、类型设置和备注时使用php think crud -t 表名生成CRUD时会自动生成对应的HTML元素和组件根据字段类型类型 备注 类型说明 int 整型 自动生成type为number的文本框,步长为1 enum ..原创 2021-07-24 15:43:45 · 1298 阅读 · 0 评论 -
一键crud问题, 错误undefined index :HTTP HOST
KarsonFastAdmin创始人2018-02-04推荐FastAdmin官网正使用服务器99元/年 298元/3年:点击查看@adminz你是不是在application/config.php中使用了$_SERVER['HTTP_HOST'],这个值在Cli控制台是没有的哦。原文链接https://ask.fastadmin.net/question/1146.html...原创 2021-07-23 16:19:15 · 651 阅读 · 1 评论 -
hbuilder阻止返回退出的另一种方式
hbuilder里面的index.html代码:<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /><title></title>原创 2021-07-09 14:13:27 · 619 阅读 · 0 评论 -
destoon 后台添加模块
原创 2021-07-09 10:46:51 · 226 阅读 · 0 评论 -
hbuilder打包wap成为APP,并解决掉返回键退出问题
将js下面的mui.js放进网站的目录下,页面也得引入这个js,(不是在hbuilder引入,是网站源代码引入,比如在你站点某个html里面引入这个js文件 )将 hbuilder 里面的 index.html 写入以下内容:<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initia..原创 2021-07-07 17:09:19 · 1158 阅读 · 0 评论 -
详解七牛访问多参数,用什么分割符
您好,两个接口参数一起处理,您需要使用管道符号进行拼接"|例如:http://digao.zhihuinongjing.cn/1622128511901_855.jpg?imageMogr2/rotate/90|imageView2/2/w/100也就是用 | 来分割多个参数原创 2021-06-23 10:39:48 · 110 阅读 · 0 评论 -
destoon : 系统目录结构
官方中文站:http://www.imagemagick.com.cn/advanced_unix_installation.html原创 2021-06-18 16:27:46 · 284 阅读 · 0 评论 -
fastadmin 一键CRUD 通过主键pid关联
建表时候 起名字比如别叫pid 比如 表A有id name 表B有id pid name那么表b里面别叫pid 叫A_id 直接就能关联成下拉选择框原创 2021-05-26 15:35:04 · 1099 阅读 · 0 评论 -
使用jQuery获取元素的所有属性attributes 2021-05-03
$(obj).attributes()$(this).each(function() { $.each(this.attributes, function() { // this.attributes is not a plain object, but an array // of attribute nodes, which contain both the name and value if(this.specified) { console.log..原创 2021-05-03 21:48:50 · 854 阅读 · 0 评论 -
discuz目录结构
discuz目录结构,每次都找文件很麻烦api ┄┄┄外部接口 connect ┄┄┄腾讯互联 db ┄┄┄UCenter数据库备份接口 google ┄┄┄Google引擎使用 javascript ┄┄┄数据和广告的 JS调用 manyou ┄┄┄manyou应用及搜索等相关服务 trade ┄┄┄在线支付接口 archiver ┄┄┄论坛静态化 config ┄┄┄站点配置文件 data ┄┄┄数据缓存及附件 attachment ┄┄┄上传的文件目录.原创 2021-05-03 15:22:57 · 891 阅读 · 3 评论 -
discuz目录结构 ano
/source/class/task站点任务内置包task_avatar.php头像类任务task_blog.php发表日志任务task_connect_bind.phpQQ 帐号绑定任务task_email.php验证邮箱任务task_friend.php添加好友任务task_gift.php红包类任务task_member.php会员类任务task_post.php论坛帖子类任务task_profile.php完善用户资料任务task_promotion.php站点推广任务/sou原创 2021-05-03 15:14:39 · 425 阅读 · 0 评论 -
修改jquery默认的$
一.使用JQuery.noConflict()该方法的作用就是让Jquery放弃对$的所有权,将$的控制权交还给prototype.js,因为jquery.js是后引入的,所以最后拥有$控制权的是jquery。它的返回值是JQuery。当在代码中调用了该 方法以后,我们就不可以使用$来调用jquery的方法了,此时$就代表在prototype.js库中定义的$了。如下:JQuery.noConflict();//此处不可以再写成$('#msg').hide(),此时的$代表prototype.js.原创 2021-04-16 15:24:59 · 204 阅读 · 0 评论 -
通过网页控制ESP8266开发板的引脚
通过网页控制ESP8266开发板的引脚首先安装ESP8266FS :通过Arduino IDE向闪存文件系统上传文件http://www.taichi-maker.com/homepage/esp8266-nodemcu-iot/iot-c/spiffs/upload-files/然后烧录程序:http://www.taichi-maker.com/homepage/esp8266-nodemcu-iot/iot-c/spiffs/spiffs-web-server/esp8266-...原创 2021-03-25 17:05:00 · 553 阅读 · 0 评论 -
一个简单至极的Tab选项卡,支持加载网页
https://www.jq22.com/jquery-info14136原创 2021-01-06 11:34:13 · 163 阅读 · 0 评论 -
如何使 fetch 时不自动加上头部?
如果使用了模板布局,临时关闭可以使用$this->view->engine->layout(false);原创 2021-01-01 10:17:39 · 209 阅读 · 0 评论 -
php友好打印
/*** 浏览器友好的变量输出* @param mixed $var 变量* @param boolean $echo 是否输出 默认为True 如果为false 则返回输出字符串* @param string $label 标签 默认为空* @param boolean $strict 是否严谨 默认为true* @return void|string*/public function dump($var, $echo=true, $label=null, $strict=true) {.原创 2020-12-02 22:03:19 · 104 阅读 · 0 评论 -
thinkphp5.1使用第三方类库,例如 lz-string 字符串压缩
以lz-string为例 , 这个 lz-string 一个能js压缩字符串 后台进行解码的算法模块。源码地址:https://github.com/pieroxy/lz-string/; csdn教程:https://blog.csdn.net/freedom_fd/article/details/90166538官网:https://pieroxy.net/blog/pages/lz-string/index.html首先类库下载下来,把里面的src里面的 LZCo...原创 2020-06-16 17:59:05 · 684 阅读 · 0 评论 -
php 查看所有已载入文件和所有变量
<?phpecho '<pre>';//查看运行到打印行的所有载入文件$debug_included_files = get_included_files();echo "<br/><br/>included_files=<br/>";print_r($debug_included_files);//查看系统里的所有变...原创 2020-03-25 20:30:56 · 1390 阅读 · 0 评论 -
使用file_get_content
file_get_contents( path , include_path , context , start , max_length)参数 描述 path 必需。规定要读取的文件。 include_path 可选。如果也想在 include_path 中搜寻文件的话,可以将该参数设为 “1”。 context 可选。规定文件句柄的环境。 con...原创 2020-03-25 10:46:28 · 2027 阅读 · 0 评论 -
echarts 饼图 label 的 formatter函数里 {a} {b} {c} {d}分别代表什么
tooltip.formatter????stringFunction提示框浮层内容格式器,支持字符串模板和回调函数两种形式。1, 字符串模板模板变量有{a},{b},{c},{d},{e},分别表示系列名,数据名,数据值等。 在trigger为'axis'的时候,会有多个系列的数据,此时可以通过{a0},{a1},{a2}这种后面加索引的方式表示系列的索引。 不...原创 2020-02-19 21:21:06 · 24421 阅读 · 2 评论 -
css3 3D动画变换初步涉及
效果图:x y轴旋转 并开启景深(外层元素)style样式: .mrbox_top_right{ -webkit-animation:spinner 2s infinite linear; //定义动画 animation: spinner 0.5s infinite linear; animation-iteration-count:1; ...原创 2019-10-23 12:14:44 · 103 阅读 · 0 评论 -
好看的canvas光线,可拿来做背景
<!doctype html><html><head><meta charset="utf-8"><title>粒子鼠标跟随动画-jq22.com</title><script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script&g...转载 2019-09-21 16:35:36 · 896 阅读 · 0 评论 -
好看的JQ时钟界面
<style>@import url("https://fonts.googleapis.com/css?family=Roboto+Mono:300,500");body { width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; ...转载 2019-09-21 16:34:04 · 273 阅读 · 0 评论