File tree 2 files changed +17
-15
lines changed
2 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -12,23 +12,23 @@ QinJs
12
12
考虑到需求复杂化,所有的API都可以无缝衔接到Zepto/Jquery
13
13
14
14
###选择器
15
- $('div')
16
-
15
+ ``` js
16
+ $ (' div' )
17
+ ```
17
18
###绑定器
18
-
19
- $('div').on('click',function(){
19
+ ``` js
20
+ $ (' div' ).on (' click' ,function (){
20
21
// do something
21
22
})
22
-
23
-
23
+ ```
24
24
###css渲染
25
-
26
- $('div').css('display','none')
27
-
28
-
25
+ ``` js
26
+ $ (' div' ).css (' display' ,' none' )
27
+ ```
29
28
###支持线性调用
30
-
31
- $('div').css('display','none')
32
- .css('display','block')
29
+ ``` js
30
+ $ (' div' ).css (' display' ,' none' )
31
+ .css (' display' ,' block' )
32
+ ```
33
33
34
34
Original file line number Diff line number Diff line change 4
4
"description" : " Jquery Free , escape Zepto . " ,
5
5
"main" : " qin.js jquery free" ,
6
6
"scripts" : {
7
- "test" : " ./node_modules/karma /bin/karma start --single-run --browsers PhantomJS "
7
+ "test" : " ./node_modules/mocha-phantomjs /bin/mocha-phantomjs ./vendor/index.html "
8
8
},
9
9
"repository" : {
10
10
"type" : " git" ,
25
25
"devDependencies" : {
26
26
"chai" : " ^1.9.2" ,
27
27
"gulp" : " *" ,
28
- "mocha" : " ^1.21.4"
28
+ "mocha" : " ^1.21.4" ,
29
+ "mocha-phantomjs" : " ^3.5.0" ,
30
+ "phantomjs" : " ^1.9.10"
29
31
}
30
32
}
You can’t perform that action at this time.
0 commit comments