fixed #3541: sync develop source codes to NPM
Merge pull request #1466 from dingpinglv/NPM

fixed #3541: sync develop source codes to NPM