var editormd; $(function() { /*加载目录*/ getCatList(); function getCatList(){ var default_cat_id = $("#default_cat_id").val(); var item_id = $("#item_id").val(); $.get( "../catalog/catList", { "item_id": item_id }, function(data){ $("#cat_id").html(''); if (data.error_code == 0) { json = data.data; console.log(json); for (var i = 0; i < json.length; i++) { cat_html ='