<a name="topTips"></a>
## topTips(content, options)
toptips 顶部报错提示
**Kind**: global function
| Param | Type | Default | Description |
| --- | --- | --- | --- |
| content | <code>string</code> | | 报错的文字 |
| options | <code>number</code> | <code>function</code> | <code>object</code> | | 多少毫秒后消失|消失后的回调|配置项 |
| [options.duration] | <code>number</code> | <code>3000</code> | 多少毫秒后消失 |
| [options.className] | <code>string</code> | | 自定义类名 |
| [options.callback] | <code>function</code> | | 消失后的回调 |
**Example**
```js
weui.topTips('请填写正确的字段');
weui.topTips('请填写正确的字段', 3000);
weui.topTips('请填写正确的字段', function(){ console.log('close') });
weui.topTips('请填写正确的字段', {
duration: 3000,
className: 'custom-classname',
callback: function(){ console.log('close') }
});
// 主动关闭
var $topTips = weui.topTips('请填写正确的字段');
$topTips.hide(function() {
console.log('`topTips` has been hidden');
});
```