Creating a globally accessible MySQLi object

前端 未结 3 1178
清歌不尽
清歌不尽 2021-01-04 09:40

I have multiple classes that use static methods. These functions connect to the database using

$mysqli = new mysqli(DB_SERVER, DB_USER, DB_P         


        
3条回答
  •  既然无缘
    2021-01-04 10:42

    This is the shortest version I could come up with for Bootstrap 3.

       $(document).ready(function() {
            if (hash = window.location.hash) {
                $('.nav-tabs a[href="' + hash + '"]').tab('show');
            }
        });
    

提交回复
热议问题