惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Vercel News
Vercel News
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
WordPress大学
WordPress大学
V
V2EX
The Register - Security
The Register - Security
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
D
DataBreaches.Net
G
Google Developers Blog
O
OpenAI News
S
Schneier on Security
Simon Willison's Weblog
Simon Willison's Weblog
I
Intezer
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
T
Threatpost
The Hacker News
The Hacker News
Cisco Talos Blog
Cisco Talos Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
T
The Exploit Database - CXSecurity.com
L
LINUX DO - 热门话题
G
GRAHAM CLULEY
博客园 - 叶小钗
V
Vulnerabilities – Threatpost
云风的 BLOG
云风的 BLOG
L
LINUX DO - 最新话题
MyScale Blog
MyScale Blog
L
LangChain Blog
Scott Helme
Scott Helme
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
Google Online Security Blog
Google Online Security Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
N
News | PayPal Newsroom
NISL@THU
NISL@THU
M
MIT News - Artificial intelligence
Cloudbric
Cloudbric
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
Recent Announcements
Recent Announcements

博客园 - TwinStudio

Stable Diffusion AI 绘画使用 chartGPT 是什么?如何使用chartGPT? ChatGPT指令大全(建议收藏) Vue3开发教程(一、学习Vue前需要了解的内容) mysql用mysqldump命令进行数据库备份与迁移 领导更喜欢的日报,长这样 Vue3快速上手,Vue3全解 MySQL优化常用的19种有效方法(推荐!) idea常用快捷键大全 MySQL的优化多种方法(至少15条) Cisco Systems VPN Client 显示不出 主界面 怎么点都打不开。我重装过了。又重新安装了。也没用 360也把他添加白名单 也显示不出= = - TwinStudio PL/SQL 工具中 TIMESTAMP 显示转换问题 oracle存储过程和存储函数sql 基于Azkaban的任务定时调度实践 帆软报表开发步骤 Oracle归档日志分析 Oracle查询归档日志 帆软设置浏览内容宽度为屏幕宽度 帆软设置下拉框参数为空选择全部
JS修改下拉框控件的默认文字“不选”
TwinStudio · 2022-04-16 · via 博客园 - TwinStudio

1. 描述

在有些特殊的报表需求中,控件的表现形式尤为重要。有时候一些按钮的默认选项似乎有点不合乎需求,怎样让用户一目了然的勾选自己所需的选项也是重中之重。实现效果如下:

2. 思路

我们可以通过修改按钮的默认项(名称),更换成更贴切用户选择习惯的文字。

3. 操作步骤

以【下拉框控件】为例:

1)在参数面板添加下拉框控件,点击数据字典-自定义,添加A、B、C选项,勾选属性允许为空

此时会在下拉框中显示不选选项。

现在我们来修改“不选”,将其改为“选择全部”。

2)给下拉框添加初始化后事件

js代码如下:

  1. this.options.name4Empty = "选择全部";  

4. 保存预览

保存预览,效果如上。

注:此方法不支持移动端。

posted @ 2022-04-16 13:59  TwinStudio  阅读(451)  评论(0)    收藏  举报