0

tel-input .. 它在 console.log 中显示 ip 和地址等信息。我不知道如何禁用它。

在此处输入图像描述

这是我的代码

    window.rhRunIntlTelInput =  function(cfosID) {
    var rhInputIntlInput = document.querySelector(cfosID);
    window.intlTelInput(rhInputIntlInput, {

        hiddenInput: "number",
        initialCountry: "auto",
        geoIpLookup: function (callback) {
            $.get('https://ipinfo.io', function () {
            }, "jsonp").always(function (resp) {
                var countryCode = (resp && resp.country) ? resp.country : "";
                callback(countryCode);

            });
        },
        utilsScript: inspiryUtilsPath.stylesheet_directory,
    });

}
4

0 回答 0