1.添加js判断undefined

Signed-off-by: maqinghua <maqinghua02@126.com>