Files
2019-02-28 19:48:21 +08:00

20 lines
761 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$(function() {
//index
$( "#tabs-api" ).tabs();
//form的title属性提示信息
$( document ).tooltip();
});
function setApiDemoTabs(selector){
//beforeLoad是ajax应答失败的情况给个提示load是html加载成功之后再加js不然不会执行。
//默认上边圆角,改为左边圆角
$( selector ).tabs({ beforeLoad: function( event, ui ) {
ui.jqXHR.error(function() { ui.panel.html( "加载中" ); });
}, load: function(event, ui){
$( ".question" ).hide();
$( ".showFaqBtn" ).click(
function() { $( ".question" ).toggle(); });}}).addClass( "ui-tabs-vertical ui-helper-clearfix" );
$( selector+" li" ).removeClass( "ui-corner-top" ).addClass( "ui-corner-left" );
}