eiInfo.set('account',$("#inqu_status-0-account").val() == null ? "" : $("#inqu_status-0-account").val());什么意思
时间: 2023-06-25 18:08:02 浏览: 67
这是一行 JavaScript 代码,它的作用是将一个 ID 为 "inqu_status-0-account" 的输入框的值赋给名为 "account" 的变量,如果该输入框的值为 null,则将 "account" 变量的值设为空字符串。
具体地说,代码中的 $("#inqu_status-0-account") 是 jQuery 选择器,用于选择 ID 为 "inqu_status-0-account" 的元素(通常是一个文本框)。".val()" 方法用于获取该元素的值,即用户在文本框中输入的内容。最后,使用三目运算符 "?" 和 ":" 来判断值是否为 null,如果是 null,则将 "account" 变量的值设为空字符串,否则将其设为文本框中的值。
相关问题
var eiInfo = new EiInfo(); var account = $("#inqu_status-0-account").val();什么意思
这是 JavaScript 代码。第一行创建了一个名为 `eiInfo` 的新对象,第二行从 HTML 页面中获取了一个 ID 为 `inqu_status-0-account` 的元素的值,并将其赋值给 `account` 变量。具体来说,`$` 符号是 jQuery 库的别名,`$("#inqu_status-0-account")` 表示选取 ID 为 `inqu_status-0-account` 的元素,`.val()` 则表示获取该元素的值。
button_query_onclick = function () { $("#inqu_status-0-itemTable").val($("#inqu_status-0-typeId").val()+""+$("#inqu_status-0-tableId").val()); efgrid.submitInqu( "ef_grid_result", "we","WEJH0002什么意思
?")
根据你提供的代码,这是一个 JavaScript 函数,当一个按钮被点击时执行。它首先获取 `#inqu_status-0-typeId` 和 `#inqu_status-0-tableId` 两个元素的值并拼接起来,然后将拼接后的结果赋值给 `#inqu_status-0-itemTable` 元素。最后,它调用 `efgrid.submitInqu` 函数,传递三个参数:`ef_grid_result`、`we` 和 `"WEJH0002什么意思?"`。至于 `WEJH0002` 是什么意思,我不知道,可能需要进一步的上下文信息来确定其含义。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)