Created
April 4, 2018 09:38
-
-
Save kanon755056/81eca1a1af272d13a7b3ecdbc05b4aa8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = [ | |
{ | |
"imgPath": "assets/icon/ming/2.jpg", | |
"valid": true, | |
"timeText": "", | |
"message": "兌換優惠0", | |
"state": "", | |
"name": "無骨雞腿排", | |
"dayLife": 0, | |
"hourLife": 0, | |
}, | |
{ | |
"imgPath": "assets/icon/ming/2.jpg", | |
"valid": true, | |
"timeText": "", | |
"message": "兌換優惠1", | |
"state": "", | |
"name": "無骨雞腿排", | |
"dayLife": 0, | |
"hourLife": 0, | |
}, | |
{ | |
"imgPath": "assets/icon/ming/2.jpg", | |
"valid": true, | |
"timeText": "", | |
"message": "兌換優惠2", | |
"state": "", | |
"name": "勁辣雞腿堡", | |
"dayLife": 0, | |
"hourLife": 0, | |
}, | |
{ | |
"imgPath": "assets/icon/ming/2.jpg", | |
"valid": true, | |
"timeText": "", | |
"message": "兌換優惠3", | |
"state": "", | |
"name": "勁辣雞腿堡", | |
"dayLife": 0, | |
"hourLife": 0, | |
}, | |
{ | |
"imgPath": "assets/icon/ming/2.jpg", | |
"valid": true, | |
"timeText": "", | |
"message": "兌換優惠4", | |
"state": "", | |
"name": "勁辣雞腿堡", | |
"dayLife": 0, | |
"hourLife": 0, | |
}, | |
{ | |
"imgPath": "assets/icon/ming/2.jpg", | |
"valid": true, | |
"timeText": "", | |
"message": "兌換優惠5", | |
"state": "", | |
"name": "勁辣雞腿堡", | |
"dayLife": 0, | |
"hourLife": 0, | |
}, | |
{ | |
"imgPath": "assets/icon/ming/2.jpg", | |
"valid": true, | |
"timeText": "", | |
"message": "兌換優惠6", | |
"state": "", | |
"name": "勁辣雞腿堡", | |
"dayLife": 0, | |
"hourLife": 0, | |
}, | |
{ | |
"imgPath": "assets/icon/ming/2.jpg", | |
"valid": true, | |
"timeText": "", | |
"message": "兌換優惠7", | |
"state": "", | |
"name": "勁辣雞腿堡", | |
"dayLife": 0, | |
"hourLife": 0, | |
}, | |
{ | |
"imgPath": "assets/icon/ming/2.jpg", | |
"valid": true, | |
"timeText": "", | |
"message": "兌換優惠8", | |
"state": "", | |
"name": "勁辣雞腿堡", | |
"dayLife": 0, | |
"hourLife": 0, | |
}, | |
{ | |
"imgPath": "assets/icon/ming/2.jpg", | |
"valid": true, | |
"timeText": "", | |
"message": "兌換優惠9", | |
"state": "", | |
"name": "勁辣雞腿堡", | |
"dayLife": 0, | |
"hourLife": 0, | |
} | |
] | |
var b; | |
/*使用者輸入011335 | |
*就從arr[0], arr[1], arr[1], arr[3], arr[3], arr[5] 裡面拿資料 放到 變數b | |
*把b 做處理 例如算時間 或是使用期限 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment