这么做将会丢失对真正的模块搜索路径列表对象的引用,同时指向了一个新创建的对象,而这个对象将不会其任何作用。
All that does is lose the reference to the actual node module lookup paths, and create a new reference to some other thing that isn't used for anything.
列表2显示了此搜索模块的代码。
通过此模块生成索引供搜索模块使用,从而实现全站搜索的功能。
The index generated by this module can then be used by the search module to provide an integrated full-text search experience for a web site.
应用推荐