1、jquery 置为不可用
$('select').attr("disabled","disabled");
2、jquery遍历数组
$.each(formArray, function(i, item) {
});
3、往下拉菜单里添加元素
$('.selectwo').append(new Option(item.PERIODCATEGORYNAME,item.PERIODCATEGORYID));
4、下拉改变
$("select").change(function () {
per = this.value;
pername = $(this).find("option:selected").text();
});
5、语法:
new Option(text, value, defaultSelected, selected)
说明:
The Option constructor or the HTML tag. To create an Option object with its constructor:
Once you've created an Option object, you can add it to a selection list using the Select.optionsarray.
参数:
text
(Optional) Specifies the text to display in the select list.
value
(Optional) Specifies a value that is returned to the server when the option is selected and the form is submitted.
defaultSelected
(Optional) Specifies whether the option is initially selected (true or false).
selected
(Optional) Specifies the current selection state of the option (true or false).
6、C#判断table是否有重复数据
https://www.cnblogs.com/clj0102/p/9399335.html
7、es6对数组filter
this.tableData = this.tableData.filter(item => item.id != 1);