我已安装tern_for_vim,并使用{
"plugins": {
"node": {},
"es_modues": {}
},
"libs": [
"ecma5",
"ecma6",
"browser",
"ecmascript",
"react",
"underscore"
],
"ecmaVersion": 6
}
配置了所有内容:
underscore
现在,当我尝试导入时,请以这种方式说underscore = require('underscore')
:
underscore.
import underscore from 'underscore'
的自动完成工作完美,但是当我以现代方式导入时:
underscore.
function zip() {
$zip = [];
$arrays = func_get_args();
if ($arrays) {
$count = min(array_map('count', $arrays));
for ($i = 0; $i < $count; $i++) {
foreach ($arrays as $array) {
$zip[$i][] = $array[$i];
}
}
}
return $zip;
}
的自动完成功能无效。怎么解决?有线索吗?