
Eric Rowell
Written in cookbook style, this book offers a wide array of techniques for building HTML5 Canvas applications. Each recipe contains step-by-step instructions followed by analysis of what was done in each task and other useful information. The book is designed so that you can read it chapter by chapter, or you can look at the list of recipes and refer to them in no particular order. This book is geared towards web developers who are familiar with HTML and JavaScript. It is written for both beginners and seasoned HTML5 developers with a good working knowledge of JavaScript.
canvas小案例特別多,工作中如果需要可以當本工具書,舉一反三自由組合
看過的所有JS的書和課程,不管是入門還是進階,操作DOM幾乎都是以document.getElementById開始的。 但至少十年前,html裏的id就可以在JS中直接使用,myCanvas.getContext(‘2d’)就行,不必再const一個變量。