1.f12調試記得寫debugger network 選中自己接口可以看入參返參
2.console.log(xx);打印東西到控制檯
3.<input type="text" id="xx" style="display:none">;隱藏文本框用於傳遞存儲數據
4.value="待定" 用於給文本框默認值;
5.$('#id').val(""); 用於賦值;
6.$('#id').val();用於獲取值;
7.$("#f_test_data4").blur(function(){
}); 用於鼠標失焦事件;
8.easyui的combobox textField/valueField 兩個參數一個是往後臺傳遞一個是頁面下拉框展示
9.easyui 獲取選中行 var rows = $("#id").datagrid("getSelections"); rows.length 獲取選中行數 rows[0].字段名 獲取字段
10.var rows = $("#questionDeal").datagrid("getChecked");
11. $.ajax({
url: xxx,
type: "get",
async: false,
data: { name: unitName, property: property, id: id, type: type },
dataType: "json",
success: function (data){
console.log(data);
}
12.easyui datagrid onSelect:function(rowIndex,rowData){
rowData.字段名
}
入參queryParams: {
type: type,
id: id
},
13. $("#xxx").attr("style","display:none;"); 讓按鈕隱藏的jq
14. $('#id').show(); div的顯示與隱藏
$('#id').hide();