document.onkeydown = function (event) {
            e = event ? event : (window.event ? window.event : null);
            if (e.keyCode == 13) {
                var actId = $("input:focus").attr("id");
                //执行的方法 
                if (actId == "putaddress") {
                    getLocAddress();
                }
            }
        }