[英]Breakpoint not hitting JS file
大家好,我在外部js文件中拥有这部分代码,该文件已添加到页面中,并且我在.NET中使用MVC和JSTree。
$(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
};
}
}
}
});
});
尝试放置关键字调试器; 你想打破它的地方
$(document).ready(function () {
debugger;
//rest of your code
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.