在 JavaScript/jQuery 中等效的 Oracle NVL 函数 [英] Oracle NVL function equivalent in JavaScript/jQuery

查看:30
本文介绍了在 JavaScript/jQuery 中等效的 Oracle NVL 函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 JavaScript/jQuery 中是否有等效的 Oracle NVL 函数.我很想看看它是如何工作的示例.

Is there an Oracle NVL function equivalent in JavaScript/jQuery. I would be interested to see an example of how it works.

推荐答案

此处通常使用三元运算符.

例如,如果您在 Apex 中创建动态操作,您可以执行以下操作:

For example, if you're creating a dynamic action in Apex you can do something like this:

( $v("P1_VAL1") ? $v("P1_VAL1") : $v("P1_VAL2") )

如果不为空则返回P1_VAL1的值,否则返回P1_VAL2的值.

This will return the value of P1_VAL1 if it's not blank, otherwise it will return the value of P1_VAL2.

这篇关于在 JavaScript/jQuery 中等效的 Oracle NVL 函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆