查找OPNET函数,修改OPNET的帮助文档,让它变得更直接更好用
找到文件\OPNET\14.5.A\doc\modeler\wwhelp\wwhimpl\js\scripts\search.js,第571行如下
// Update search words
//
NewSearchWords = SearchForm.elements["WWHSearchWordsText"].value;
if (NewSearchWords != this.mSavedSearchWords)
{
this.mSavedSearchWords = NewSearchWords;
this.mbSearching = true;
}
增加两行replace,变成
// Update search words
//
NewSearchWords = SearchForm.elements["WWHSearchWordsText"].value;
NewSearchWords = NewSearchWords.replace(RegExp("[_-]","g")," ");
NewSearchWords = NewSearchWords.replace(RegExp("[\\(\\)\"]","g")," ");
if (NewSearchWords != this.mSavedSearchWords)
{
this.mSavedSearchWords = NewSearchWords;
this.mbSearching = true;
}
这样就不用管下划线和横杠和括号了,可以直接搜索函数“op_intrpt_type ()”,其他想法自己发挥。
做到这些使用了搜狗浏览器的F12快捷键中的脚本调试功能,单机“启动调试”再“全部中断”再点击搜索页面上的“开始!”按钮,就会断下来,单步跟踪即可。
文件在此:OPNET的search.js http://download.youkuaiyun.com/detail/wwwwws/9723196