在Java中直接调用js代码不能调用浏览器中定义的js函数,会抛出异常提示ReferenceError: “alert” is not defined。在Java中绑定js变量在调用engine.get(key);时,如果key没有定义,则返回null