-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModuleA.js
More file actions
32 lines (31 loc) · 867 Bytes
/
Copy pathModuleA.js
File metadata and controls
32 lines (31 loc) · 867 Bytes
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
/**
* Created by chendi on 15/8/28.
*/
define("app/js/g/ModuleA.js",['$','_'],function(require,exports){
var $ = require('$');
$('body').css('background-color','gray');
$('body').css(
{
"background-color":"gray"
}
)
$('body').on("click",function(){
//alert("click");
});
$('body')
.on('touchstart', 'a, .js-touch-state', function () {
$(this).addClass('touch');
})
.on('touchmove', 'a, .js-touch-state', function () {
$(this).removeClass('touch');
})
.on('touchend', 'a, .js-touch-state', function () {
$(this).removeClass('touch');
})
.on('touchcancel', 'a, .js-touch-state', function () {
$(this).removeClass('touch');
});
exports.alertA = function (){
alert("A");
}
});