[disabled]="i==0?true:false"
时间: 2024-05-29 13:09:54 浏览: 19
This is a condition that disables the element if the index variable "i" is equal to 0. If "i" is 0, then the condition evaluates to "true" which disables the element. Otherwise, the condition evaluates to "false" and the element is not disabled.
相关问题
<td colspan="1" class="title_label" style="width:10%;"> <i th:if="${currentProcess == null || currentProcess.userId == userId}" class="red">*</i>点检责人:</td> <td colspan="1" style="width:23.33%"> <div class="form-control" th:if="${currentProcess == null || currentProcess.userId != userId || currentProcess.currentNode != 106}" th:disabled="${true}" onclick="selectCreateUser();">‘ 为什么 这段代码中 <td colspan="1" class="title_label" style="width:10%;"> <i th:if="${currentProcess == null || currentProcess.userId == userId}" class="red">*</i>点检责人:</td> <td colspan="1" style="width:23.33%"> <div class="form-control" th:if="${currentProcess == null || currentProcess.userId != userId || currentProcess.currentNode != 106}" th:disabled="${true}" onclick="selectCreateUser();">‘ 会无效?
这段代码中的 `th:disabled="${true}"` 属性将该表单元素设置为不可编辑状态。如果该属性设置为 `true`,则该表单元素的值不能被修改或编辑。所以,如果您想要启用该表单元素,则需要将该属性设置为 `false` 或者将该属性从代码中删除。另外,还要确保该元素不受其他代码的影响,例如 JavaScript 代码或其他框架的代码,这些代码可能会覆盖或修改该元素的属性。
<td colspan="1" class="title_label" style="width:10%;"> <i th:if="${currentProcess == null || currentProcess.userId == userId}" class="red">*</i>点检责人:</td> <td colspan="1" style="width:23.33%"> <div class="form-control" th:if="${currentProcess == null || currentProcess.userId != userId || currentProcess.currentNode != 106}" th:disabled="${true}" onclick="selectCreateUser();">‘ 为什么这段不可选 不可编辑会无效?
这代码中的 `th:disabled="${true}"` 属性将该表单元素设置为不可编辑状态。这意味着用户不能在页面上编辑或修改该元素的值。如果您希望该表单元素在页面上可编辑,则需要将该属性更改为 `th:disabled="${false}"` 或者将该属性从代码中完全删除。请注意,如果将该属性从代码中删除,则该元素将默认为可编辑状态。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![ppt](https://img-home.csdnimg.cn/images/20210720083527.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.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)
![](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)
使用cheerio 转换以下代码为json <input type="checkbox" v-model="RemitInBox" class="RemitInBox v-pristine v-valid" name="RemitInBox" value="0" v-checked="data.CheckFlag" v-disabled="data.FndDrc!='01' || data.BusiState!='10'" id="List0_RemitIn" v-click="clickBox($index,data)"> IR00252300347A IR00252300347A 2023-05-25 USD32,993.50 1/FLOKSER KIMYA SANAYI VE TICARET 1... 31980005000107125 入账 退汇 待客户确认 受理成功 打印
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)