forked from taiansu/astro_04_js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0417_js_homework.js
47 lines (36 loc) · 975 Bytes
/
0417_js_homework.js
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
// import $ from 'jquery'
// const $ = require('jquery')
// $(document).ready(function() {
// $('#add-img-by-id').on('click', idImgeHandler)
// $('#add-img-randomly').on('click', randomImgeHandler)
// $('#pic-destroy').on('click', picDestroyHandler)
// })
function idImgeHandler(evt) { }
function randomImgeHandler(evt) { }
function picDestroyHandler(evt) { }
// other functions
function randomPicID() {}
const Logger = {
info: function() { },
debug: function() { },
log: function(msg) {
if(getSystemEnv() === 'dev' || getSystemEnv() == 'test') {
console.log('------------------------------')
console.log(msg)
console.log('------------------------------')
}
}
}
// const IMAGE_LIMIT = 1085
// let randomPicID = function (url){
// return Math.floor(Math.random() * IMAGE_LIMIT )
// }
// let a = 10
// if(a = 100) {
// console.log('true!!')
// } else {
// console.log('false!!')
// }
function foo(a) {
console.log(a)
}