我安装了gulp(全局),它看起来很有效,因为它运行了这段代码:
??? tildify@0.2.0
??? interpret@0.3.5
??? pretty-hrtime@0.2.1
??? deprecated@0.0.1
??? archy@0.0.2
??? minimist@0.2.0
??? semver@2.3.2
??? orchestrator@0.3.7 (stream-consume@0.1.0, sequencify@0.0.7, end-of-stream@0.1.5)
??? chalk@0.5.1 (escape-string-regexp@1.0.1, ansi-styles@1.1.0, supports-color@0.2.0, strip-ansi@0.3.0, has-ansi@0.1.0)
??? gulp-util@2.2.20 (lodash._reinterpolate@2.4.1, dateformat@1.0.8-1.2.3, vinyl@0.2.3, through2@0.5.1, multipipe@0.1.1, lodash.template@2.4.1)
??? liftoff@0.12.0 (extend@1.2.1, minimist@0.1.0, resolve@0.7.4, findup-sync@0.1.3)
??? vinyl-fs@0.3.5 (graceful-fs@3.0.2, lodash@2.4.1, mkdirp@0.5.0, strip-bom@0.3.1, vinyl@0.2.3, through2@0.5.1, glob-watcher@0.0.6, glob-stream@3.1.14)
Run Code Online (Sandbox Code Playgroud)
但是当我打字gulp时说-bash: gulp: command not found
知道发生了什么事吗?
我有一个导航栏,滚动时固定在窗口的顶部.但是,当我单击一个输入并且键盘弹出固定位置时,导航会移动并卡在错误的位置.有任何解决这个问题的方法吗?
此外,我似乎无法通过点击它外面关闭键盘.
我有一个表单,需要收集值并转换为JSON查询.但是,当我使用JSON.stringify时,它会删除任何以零开头的邮政编码.有什么方法可以阻止这种情况吗?
这是我正在尝试使用的代码的简单版本:
var zipcode = 02122;
var data = {
ZipCode : zipcode
}
var jsonQuery = JSON.stringify(data);
Run Code Online (Sandbox Code Playgroud)