## Loading
### 調用方式
tips支持三種不同的調用方式,一般使用$.tips(options)即可。
~~~
//最簡單的方式,組件會根據默認模板輸出dom結構
$.loading(options);
//通過傳入模板字符串的方式
$('<div><%=content%><</div>').loading(options);
//通過傳入css選擇器的方式
$("#id").loading(options);
~~~
### 配置說明
| name | type | default | description |
| --- | --- | --- | --- |
| content | string | '加載中...' | 提示內容,用來填充模板 |
### DEMO演示

~~~
<div class="ui-center">
<div class="ui-btn" id="btn1">彈出loading</div>
</div>
<script type="text/javascript">
$("#btn1").tap(function(){
var el=$.loading({
content:'加載中...',
})
setTimeout(function(){
el.loading("hide");
},2000);
el.on("loading:hide",function(){
console.log("loading hide");
});
});
</script>
~~~