奔跑的小叶子
首页 关于叶子
1 Win10突然出现不能连接共享打印机一例 359,334 阅读 2 [经验存档] 微星(MSI)B150M-Pro-VD Plus安装系统蓝屏一例 205,194 阅读 3 Laravel“高并发”导致数据“统计”异常一例 97,976 阅读 4 Laravel 9高并发API数据操作的最佳实践 62,197 阅读 5 [iOS|Xcode]iOS-App自定义启动页制作(uniapp适用) 55,900 阅读
代码 分享 琐事 MySQL 数码 前端 MacOS 软件 Windows PHP GoLang学习
登录
标签搜索
  • Laravel
  • PHP
  • Windows
  • Laravel-Admin
  • Vue
  • uniapp
  • CSS
  • 前端
  • chartjs
  • HTML
  • 微信
  • 小程序
  • web
  • MacOS
  • App
  • iOS
  • 工具
  • Golang
  • 微服务
  • 高并发
侧边栏壁纸
博主昵称
Yesr00

  • 累计撰写 64 篇文章
  • 累计收到 8 条评论
  • 首页
  • 栏目
    • 代码
    • 分享
    • 琐事
    • MySQL
    • 数码
    • 前端
    • MacOS
    • 软件
    • Windows
    • PHP
    • GoLang学习
  • 页面
    • 关于叶子
搜索到 1 篇与 的结果
  • Dcat-Admin 2.x表单使用select和input进行表单联动一例 2025-01-07
    Dcat-Admin 2.x表单使用select和input进行表单联动一例 前言这个场景是最近在写一个兼职项目的时候用到的一个场景。但是由于select数量太多使用when的话不太合适当前场景。而用自带的load或者loads无法实现正常的赋值,改了各种接口格式不是undefined就是报错。在不想改源码的情况下,使用了当前方法。使用代码示例-以widget form为例$this->select('user_no','用户编号')->options(User::query()->pluck('user_no','id'))->script( " $('select[name=\"station_no\"]').on('change',function(e){ var station_no = $(this).val(); $.ajax({ url:'/admin/name_by_no', method:'GET', data:{q:station_no}, success:(res)=>{ console.log('success',res); $('input[name=\"name\"]').val(res.text); }, fail:(err)=>{ console.log('err',err); } }); })" ); $this->text('name','姓名')->readonly(true); 总结通过上述方法,实现了在选中select选项后对text进行赋值的一个演示。
    • 2025年01月07日
    • 4,707 阅读
    • 0 评论
    • 0 点赞
博主栏壁纸
博主头像 Yesr00

64 文章数
8 评论量
  • OFD 增值税电子发票版式文件阅读器-3.0.20.0830- 国标板式
  • 微软:将永久删除Adobe Flash Player
  • Laravel-Admin下使用chartjs模板渲染问题一例
  • vue 2.x踩坑日记-Watch篇
  • vue|uni-app引入保利威,切换视频403一例
人生倒计时
最新回复
  • mBgCYRFErLVfcCyRkgtjVJz
    mBgCYRFErLVfcCyRkgtjVJz
    2025-12-20
    aUkpWrdDwvALqHaCz
  • diuwin login
    diuwin login
    2024-09-24
    Wonderful post! We will be linking to this great post on our site. Keep up the great writing.
  • lista escape room
    lista escape room
    2024-06-30
    Good article and straight to the point. I am not sure if this is in fact the best place to ask but do you guys have any thoughts on where to hire some professional writers?Thanks :) Lista escape roomów
  • 92. Zielgruppenanalyse
    92. Zielgruppenanalyse
    2024-04-15
    Fantastic read! I was especially impressed by the depth provided on the topic, offering a perspective I hadn't considered. Your insight adds significant value to the conversation. For future articles, it would be fascinating to explore more to dive deeper into this subject. Could you also clarify more about the topic? It caught my interest, and I'd love to understand more about it. Keep up the excellent work!
  • 92. Zielgruppenanalyse
    92. Zielgruppenanalyse
    2024-04-15
    Fantastic read! I was especially impressed by the depth provided on the topic, offering a perspective I hadn't considered. Your insight adds significant value to the conversation. For future articles, it would be fascinating to explore more to dive deeper into this subject. Could you also clarify more about the topic? It caught my interest, and I'd love to understand more about it. Keep up the excellent work!
标签云
舔狗日记
2019 - 2020 © Reach - 奔跑的小叶子 - 闽ICP备19024768号
RSS MAP