码迷,mamicode.com
首页 > 其他好文 > 详细

bootstrap 定时

时间:2017-11-06 12:38:39      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:title   round   ack   targe   table   too   type   attr   style   

 

<input type="text" class="form-control" id="tableName" placeholder="请输入表格名称" data-toggle="tooltip" data-placement="top">
<script>
function showPopover(target, msg) {
  target.attr("data-original-title", msg);
  $([data-toggle="tooltip"]).tooltip();
  target.tooltip(show);
  target.focus();
  //2秒后消失提示框
  var id = setTimeout(
    function () {
      target.attr("data-original-title", "");
      target.tooltip(hide);
    }, 2000
  );
}
showPopover($("#tableName"),"表名已存在");
</script>

 

bootstrap 定时

标签:title   round   ack   targe   table   too   type   attr   style   

原文地址:http://www.cnblogs.com/shaoing/p/7792518.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!