Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 如何自动隐藏工具提示_Jquery_Ionic Framework - Fatal编程技术网

Jquery 如何自动隐藏工具提示

Jquery 如何自动隐藏工具提示,jquery,ionic-framework,Jquery,Ionic Framework,我想显示小弹出显示文字,如在爱奥尼亚的工具提示。所以我在使用Tooltipster这是我的代码: .directive('tooltip', function () { return { restrict: 'C', link: function (scope, element, attrs) { if (attrs.title) { var $element = $(element);

我想显示小弹出显示文字,如在爱奥尼亚的工具提示。所以我在使用Tooltipster这是我的代码:

.directive('tooltip', function () {
    return {
        restrict: 'C',
        link: function (scope, element, attrs) {
            if (attrs.title) {
                var $element = $(element);
                $element.attr("title", attrs.title)
                $element.tooltipster({
                    theme: 'tooltipster-default',
                    animation: attrs.animation,
                    trigger: "click",
                    position: "top",
                    positionTracker: true,
                    maxWidth: 500,
                    autoClose: true,
                    contentAsHTML: true
                });
            }
        }
    };
})
现在,一段时间后我无法隐藏自动。我正在使用以下命令。谁能帮我关门吗。 我也尝试以下方法:

$element.tooltipster('hide');
$element.tooltipster('destroy');
有关更多信息,请尝试关闭前计时器(毫秒)事件工具提示应处于活动状态

有关更多信息,请尝试关闭前计时器(毫秒)事件工具提示应处于活动状态

.directive('tooltip', function () {
    return {
        restrict: 'C',
        link: function (scope, element, attrs) {
            if (attrs.title) {
                var $element = $(element);
                $element.attr("title", attrs.title)
                $element.tooltipster({
                    theme: 'tooltipster-default',
                    animation: attrs.animation,
                    trigger: "click",
                    position: "top",
                    positionTracker: true,
                    maxWidth: 500,
                    timer:500,
                    autoClose: true,
                    contentAsHTML: true
                });
            }
        }
    };
})