2012-06-01 23 views
0

大家好我有一個外部js文件已被添加到頁面和即時通訊使用MVC和JSTree在.NET中的這一點代碼。斷點沒有打到JS文件

$(document).ready(function() { 

$("#divJsTreeDemo").jstree({ 
    // List of active plugins 
    // I usually configure the plugin that handles the data first 
    // This example uses JSON as it is most common 
    "json_data": { 
     // This tree is ajax enabled - as this is most common, and maybe a bit more complex 
     // All the options are almost the same as jQuery's AJAX (read the docs) 
     "ajax": { 
      // the URL to fetch the data 
      "url": "/WebTree/GetTreeNodes", 
      // the `data` function is executed in the instance's scope 
      // the parameter is the node being loaded 
      // (may be -1, 0, or undefined when loading the root nodes) 
      "data": function (n) { 
       // the result is fed to the AJAX request `data` option 
       return { 
        "operation": "get_children", 
        "id": n.attr ? n.attr("id").replace("node_", "") : 1 
       }; 
      } 
     } 
    } 
}); 

}); 

回答

0

試着放關鍵字調試器;在那裏你想打破它像

$(document).ready(function() { 
    debugger; 
    //rest of your code 

});