使用this post安装socket.io后,我们尝试按照How to see socket.io version on node.js npm server的说明确认版本。
然而,当我们运行version命令时,我们会返回final SearchView searchView = (SearchView)findViewById(R.id.search);
int searchPlateId = searchView.getContext().getResources().getIdentifier("android:id/search_src_text", null, null);
EditText searchPlate = (EditText) searchView.findViewById(searchPlateId);
searchPlate.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
//Do something
}
return false;
});
。
Undefined
然而,探索目录,它似乎已安装:
[root@mongo wok]# node
> require("socket.io").version
undefined
>
有什么问题?