easyui jquery 可能用到方法mark

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();

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章