Skip to content

Commit b3a75da

Browse files
add block syntax in readme
1 parent 7dad3f1 commit b3a75da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Some examples:
66

77
append style css to dom objects
88

9+
```
910
$.fn.declare.add({
1011
'set.color': function(color) {
1112
return this.css({
@@ -20,10 +21,11 @@ append style css to dom objects
2021
});
2122

2223
$("div.title").declare('set.color', 'yellow').declare('set.bgcolor', 'red');
23-
24+
```
2425

2526
append events e style to table
2627

28+
```
2729
$.fn.declare.add({
2830
'row.alternate': function(opt) {
2931
this.find("tr.odd")
@@ -57,4 +59,4 @@ append events e style to table
5759
})
5860
.find("tr")
5961
.declare("row.hover","#0000ff");
60-
62+
```

0 commit comments

Comments
 (0)