jt
2021-06-10 5d0d028456874576560552f5a5c4e8b801786f11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* 20171010 jxj add canvas
*/
// (function () { })();立即执行函数;相当于先申明一个函数,声明完后直接调用;
 
var $jq = jQuery;
 
$jq(function ()
{
 
    $jq(".tab_title a").click(function ()
    {
        $jq(this).addClass("tab_clicked").siblings().removeClass("tab_clicked");
        var index = $jq(".tab_title a").index(this);
        $jq(".tab_box > div").eq(index).show().siblings().hide();
    })
    //执行函数 
    $jq("#btn_textadd").click(function ()
    {
        alert("textad");
 
    }) 
 
});