Alert插件

Intro

轻量级的灵活提示插件

Author

name: Janking

concat:[email protected]

Example

http://codepen.io/janking/pen/ZOLxEV

Options


@param {String} obj 被提示的对象,可传 id 或 jQuery 对象

@param {String} text 文本信息

@param {Number} timeout 多少毫秒后隐藏提示

@param {Boolean} status 状态,success or error

@param {Array} offset 自定义位置微调值,offset[0] = x, offset[1] = y

@param {Function} callback 回调函数 - hide 时触发

Usage


$('#one').click(function(event) {

 $.alert({

 obj:'#alert-part',

 text:'demo for part alert !',

 offset:[5,5]

 })

});

$('#two').click(function(event) {

 $.alert({

 text: 'hello world!'

 });

});

results matching ""

    No results matching ""