楼主: NewOccidental
1844 7

JavaScript Cookbook [推广有奖]

  • 0关注
  • 6粉丝

已卖:1555份资源

副教授

31%

还不是VIP/贵宾

-

TA的文库  其他...

Complex Data Analysis

东西方金融数据分析

eBook with Data and Code

威望
0
论坛币
11759 个
通用积分
2.3200
学术水平
119 点
热心指数
115 点
信用等级
114 点
经验
8940 点
帖子
173
精华
10
在线时间
30 小时
注册时间
2006-9-19
最后登录
2022-11-3

楼主
NewOccidental 发表于 2015-3-27 05:55:59 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

JavaScript Cookbook


Programming the Web


Book Description
Why reinvent the wheel every time you run into a problem with JavaScript? This cookbook is chock-full of code recipes that address common programming tasks, as well as techniques for building web apps that work in any browser. Just copy and paste the code samples into your project - you'll get the job done faster and learn more aboutJavaScript in the process.

You'll also learn how to take advantage of the latest features in ECMAScript 5 and HTML5, including the new cross-domain widget communication technique, HTML5's video and audio elements, and the drawing canvas. You'll find recipes for using these features with JavaScript to build high-quality application interfaces.
Book Details
  • Publisher:        O'Reilly Media
  • By:       Shelley Powers
  • ISBN:        978-0-596-80613-2
  • Year:        2010
  • Pages:        560
  • Language:        English
  • File size:        12.58 MB
  • File format:        PDF
  • Download:     

    本帖隐藏的内容

    JavaScript Cookbook.rar (7.7 MB, 需要: 20 个论坛币) 本附件包括:
    • JavaScript Cookbook.pdf



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Javascript Cookbook script scrip Cook techniques advantage building features browser

本帖被以下文库推荐

沙发
zhukeming(未真实交易用户) 发表于 2015-3-27 09:04:24
  1. Inserting Special Characters
  2. Problem
  3. You want to insert a special character, such as a line feed, into a string.
  4. Solution
  5. Use one of the escape sequences in the string. For instance, to include the copyright symbol in a block of text to be added to the page (shown in Figure 1-1), use the escape sequence \u00A9:
  6. var resultString = "<p>This page \u00A9 Shelley Powers </p>";

  7. // print out to page
  8. var blk = document.getElementById("result");
  9. blk.innerHTML = resultString;
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

藤椅
charlmei(未真实交易用户) 发表于 2015-4-17 10:43:45
  1. Replacing Patterns with New Strings
  2. Problem
  3. You want to replace all matched substrings with a new substring.
  4. Solution
  5. Use the String’s replace() method, with a regular expression:
  6. var searchString = "Now is the time, this is the tame";
  7. var re = /t\w{2}e/g;
  8. var replacement = searchString.replace(re, "place");
  9. console.log(replacement); // Now is the place, this is the place
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

板凳
Nicolle(未真实交易用户) 学生认证  发表于 2016-5-5 09:27:23
提示: 作者被禁止或删除 内容自动屏蔽

报纸
Nicolle(未真实交易用户) 学生认证  发表于 2016-5-5 09:28:21
提示: 作者被禁止或删除 内容自动屏蔽

地板
ReneeBK(未真实交易用户) 发表于 2016-5-5 09:35:39
  1. Finding and Highlighting All Instances of a Pattern
  2. Problem
  3. You want to find all instances of a pattern within a string.
  4. Solution
  5. Use the RegExp exec method and the global flag (g) in a loop to locate all instances of a pattern, such as any word that begins with t and ends with e, with any number of characters in between:
  6. var searchString = "Now is the time and this is the time and that is the time";
  7. var pattern = /t\w*e/g;
  8. var matchArray;

  9. var str = "";

  10. // check for pattern with regexp exec, if not null, process
  11. while((matchArray = pattern.exec(searchString)) != null) {
  12.   str+="at " + matchArray.index + " we found " + matchArray[0] + "\n";
  13. }
  14. console.log(str);
复制代码

7
中国文学(未真实交易用户) 发表于 2016-6-26 23:16:18

8
ReneeBK(未真实交易用户) 发表于 2017-7-17 02:11:56
Moodle JavaScript Cookbook
1 个回复 - 179 次查看**** 本内容被作者隐藏 ****2016-12-29 07:28 - Lisrelchen - Forum

JavaScript Cookbook, 2nd Edition
19 个回复 - 684 次查看JavaScript Cookbook, 2nd Edition Programming the Web Book Description Problem solving with JavaScript is a lot trickier now that its use has expanded considerably in size, scope, and complexity ...2015-7-13 09:24 - Nicolle - Forum

JavaScript & DHTML Cookbook, 2nd Edition
4 个回复 - 411 次查看2015-9-29 11:30 - Nicolle - Forum

【2015新书】JavaScript JSON Cookbook
55 个回复 - 3518 次查看【2015新书】JavaScript JSON Cookbook Book 图书名称:JavaScript JSON Cookbook Author 作者: Ray Rischpater Publisher 出版社:Packt Publishing - ebooks Account Page 页数:220 Publishing Da ...2015-8-12 06:26 - kychan - Forum

[Java文库]Google Maps JavaScript API Cookbook
12 个回复 - 748 次查看Google Maps JavaScript API Cookbook Over 50 recipes to help you create web maps and GIS web applications using the Google Maps JavaScript API Book DescriptionDay by day, the use of location data ...2015-3-27 05:49 - NewOccidental - Forum

JavaScript Cookbook
6 个回复 - 427 次查看JavaScript Cookbook Programming the Web Book Description Why reinvent the wheel every time you run into a problem with JavaScript? This cookbook is chock-full of code recipes that address common pr ...2015-3-27 05:55 - NewOccidental - Forum

JavaScript Application Cookbook
10 个回复 - 358 次查看
  • JavaScript Application Cookbook
  • By: Jerry Bradenbaugh
  • Publisher: O'Reilly Media, Inc.
  • Pub. Date: October 11, 1999
  • Print ISBN-13: 978-1-56592-577-9
  • Pages in Print Edition: 48 ...2015-10-16 10:04 - ReneeBK - Forum

  • 您需要登录后才可以回帖 登录 | 我要注册

    本版微信群
    jg-xs1
    拉您进交流群
    GMT+8, 2026-1-10 04:52