{"id":154684,"student_id":10,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n \u003ctitle\u003eDocument\u003c/title\u003e\\n \u003clink rel=\\\"stylesheet\\\" href=\\\"https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css\\\"\u003e\\n \u003cscript src=\\\"https://code.jquery.com/jquery-3.5.1.slim.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n\\n \u003cbutton id=\\\"start\\\" class=\\\"btn btn-primary\\\"\u003e開始\u003c/button\u003e\\n \\n \u003cp\u003e\u003c/p\u003e\\n\\n \u003ctable class=\\\"table\\\" id=\\\"root\\\"\u003e\\n \u003cthead\u003e\\n \u003ctr\u003e\\n \u003cth scope=\\\"col\\\"\u003e天\u003c/th\u003e\\n \u003cth scope=\\\"col\\\"\u003e兔子\u003c/th\u003e\\n \u003c/tr\u003e\\n \u003c/thead\u003e\\n \u003ctbody\u003e\\n \u003c/tbody\u003e\\n \u003c/table\u003e\\n\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"\",\"js\":\"$('#start').click(start);\\n\\nvar arr = [0, 1, 1];\\n\\nfunction start () {\\n var day = prompt('輸入天數?');\\n var result = fib(day);\\n $('p').text(`經過 ${day} 天,有 ${result} 隻兔子`);\\n arrToTable(arr);\\n}\\n\\nfunction arrToTable (arr) {\\n $('tbody').empty();\\n for (var i = 0; i\u003c arr.length; i++) {\\n $('tbody').prepend(`\\n \u003ctr\u003e\\n \u003ctd\u003e第 ${i} 天\u003c/td\u003e\\n \u003ctd\u003e有 ${arr[i]} 隻兔子\u003c/td\u003e\\n \u003c/tr\u003e\\n `)\\n }\\n}\\n\\nfunction fib (day) {\\n var a = 1;\\n var b = 1;\\n \\n for (var i = 3; i \u003c= day; i++) {\\n var tmp = a + b;\\n a = b;\\n b = tmp;\\n arr[i] = b;\\n }\\n return b;\\n}\\n\\nfunction fib (day) {\\n if (day \u003e 2) {\\n var r = fib(day - 1) + fib(day - 2);\\n arr[day] = r;\\n return r;\\n }\\n return 1;\\n}\"}","created_at":"2020-06-01T15:44:14.341+08:00","updated_at":"2020-06-03T18:11:20.287+08:00","name":"費氏數列(概念版)","language":"web","screenshot":{"url":"/uploads/project/screenshot/154684/c8f725cf48f361cae8bb9798cb93022a.jpg"},"parent_id":3,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":408,"hashid":"qmdsyj5n","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2699234,"file_name":"koding.png","project_id":154684,"asset_id":182920,"created_at":"2020-06-01T15:44:14.347+08:00","updated_at":"2020-06-01T15:44:14.347+08:00"}]
Orange Apple Learning Platform
My Projects
View Project Page
Export
Remix
Import
Delete
Download Android APP (APK)
Screenshot
Open Web Site
繁中
简中
English
日本語
1:1:1
1:1
Full Width
Scan the QRCode below with your phone to install
Or you can
download APK
to this computer
Scan the QRCode below with your phone to install
Or you can
download APK
to this computer