课程: Design the Web: Creating a Sortable Table
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Activating the plugin
- [Voiceover] Now with our JavaScript files hooked in let's go back to our exercise files. Inside of the Assets folder let's open up design_the_web.js up in our Text Editor. So the first thing we're gonna do here is use jQuery's document.ready so that we can write some instructions that will fire once the browser has loaded all of the HTML. So let's come in here and delete this comment. Let's hit a few returns. To create a document.ready in jQuery we start with a dollar sign, beginning and ending parentheses, inside of the parentheses we're gonna type in the word "document," then outside of the parentheses we're gonna type ".ready." Another set of parentheses and a semicolon, and then inside of the parentheses for ready, we're gonna type in an anonymous function. So we'll type in the word "function," beginning and ending parentheses, beginning and ending bracket, get our cursor between the brackets and let's split this open. And now any instructions we write inside of here will only…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
Preparing the HTML file3 分钟 13 秒
-
(已锁定)
Activating the plugin6 分钟 2 秒
-
(已锁定)
Setting a default sort on page load3 分钟 24 秒
-
(已锁定)
Highlighting the sorted column4 分钟 54 秒
-
(已锁定)
Creating CSS triangles to indicate sort order4 分钟 34 秒
-
(已锁定)
Creating custom sort properties8 分钟 16 秒
-
(已锁定)
Where to go from here55 秒
-