-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathattax.html
53 lines (47 loc) · 1.22 KB
/
attax.html
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Attax.js测试</title>
<style>
.active{width: 100px;height: 100px;background-color: #fc0;position:absolute;}
</style>
<script src="attax.js"></script>
<script>
</script>
<script>
$(function(){
//$('.div1').addClass('active');
/* $('#div1').removeClass('active');*/
$('#div1').css('width','140px');
/*alert($('#div1').attr('index'));*/
$('#div1').attr('title','it\'s bullshit');
$('#div1').css('backgroundColor','#fc090c');
$('#div1').css({'backgroundColor':'#86B300'});
console.log($('#div1').css('backgroundColor'));
Attax('#div1').css('height','400px');
Attax('#div1').animate({width:'200',left:100,top:300},{time:3000,end:function(){$('#div1').html('html\(\)方法成功')}});
Attax('#div1').find('.ch').each(function(){$(this).html('cccc')});
Attax.jsonp('http://suggestion.baidu.com/su',
{wd: 'aaa'},
{
callback:'cb',
success:function(json){
alert(json.s);
},
complete:function(json){
alert(json.s);
}
}
);
})
</script>
</head>
<body>
<div id="div1" class="div1" index="1" title="to">
<div class="ch" id="1">
w
</div>
</div>
</body>
</html>