开通博客

JQUERY随记
1
<script type="text/javascript">
2
<!--
3
jQuery.fn.extend({
4
red: function() {
5
return $(this).css('color', '#ff0000');
6
}
7
});
8
9
$('#test').red();
10
//-->
11
</script>
12

2

3

4

5

6

7

8

9

10

11

12
