课程: Learning JavaScript Debugging

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Use a debugger as a learning tool on a live site

Use a debugger as a learning tool on a live site - JavaScript教程

课程: Learning JavaScript Debugging

Use a debugger as a learning tool on a live site

- [Instructor] Up to this point, we've been using a JavaScript debugger to look for problems in code we're editing, but there's another way to employ a debugger that's also quite useful. You can bring all the same tools to bear on a live website to learn about how it works. Let's give that a try with this one, hansel and petal. It's very similar to some examples that we've been using previously offline but this is the online version of it. This is a fictitious business that we use for demonstration purposes, and this is the cart page where we can choose some flowers to buy. So looking over the behaviors here of course we have some hover interactivity. And as we click these, they start to populate the cart. And for some of them we have a color selector that will change the image here. We've got some prices. And if we change the quantity, the totals update. So first, let's see how this color changing is taking place.…

内容