我需要工具提示的 javascript 代码在点击时出现 10 秒
大多数情况下不使用 html 代码或任何插件
$('a.pet_type_link').click(function() {
//I need tooltip to appear for 10seconds
});
我正在使用 coffescript 和 haml 代码。
我需要工具提示的 javascript 代码在点击时出现 10 秒
大多数情况下不使用 html 代码或任何插件
$('a.pet_type_link').click(function() {
//I need tooltip to appear for 10seconds
});
我正在使用 coffescript 和 haml 代码。
检查此示例听起来与您的查询相似
timeout = setTimeout(function () {
$("#tooltip").hide('fast');//change these options
}, 500);
您在寻找工具提示超时吗?
根据您的要求更改超时功能的时间延迟。