楼主: ReneeBK
1128 2

Learning JavaScript, 2nd Edition [推广有奖]

  • 1关注
  • 62粉丝

VIP

已卖:4898份资源

学术权威

14%

还不是VIP/贵宾

-

TA的文库  其他...

R资源总汇

Panel Data Analysis

Experimental Design

威望
1
论坛币
49640 个
通用积分
55.8137
学术水平
370 点
热心指数
273 点
信用等级
335 点
经验
57805 点
帖子
4005
精华
21
在线时间
582 小时
注册时间
2005-5-8
最后登录
2023-11-26

楼主
ReneeBK 发表于 2015-10-16 10:12:17 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

  • Learning JavaScript, 2nd Edition
  • By: Shelley Powers

  • Publisher: O'Reilly Media, Inc.

  • Pub. Date: December 16, 2008

  • Print ISBN-13: 978-0-596-52187-5

  • Pages in Print Edition: 398

  • Subscriber Rating: [7 Ratings]




二维码

扫码加我 拉你入群

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

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

关键词:Javascript Learning earning Edition editio Media

本帖被以下文库推荐

沙发
Lisrelchen 发表于 2015-10-16 10:14:44
  1. Example 2-1. URI encoding two strings using the JavaScript encodeURI and encodeURIComponent methods
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  3. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html  >
  5. <head>
  6. <title>URI Encoding</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <script type="text/javascript">
  9. //<![CDATA[

  10. function encodeStrings() {
  11.     var sOne =
  12. encodeURIComponent("http://burningbird.net/index.php?pagename=$1&page=$2");
  13.     var sTwo = encodeURI("http://someapplication.com/?catsname=Zöe&URL=");
  14.     var sOutput = "<p>Link is " + sTwo + sOne + "</p>";
  15.     document.write(sOutput);

  16.     var sOneDecoded = decodeURI(sTwo);
  17.     var sTwoDecoded = decodeURIComponent(sOne);

  18.     var sOutputDecoded = "<p>" + sOneDecoded + "</p><p>" + sTwoDecoded + "</p>";
  19.     document.write(sOutputDecoded);

  20. }
  21. //]]>
  22. </script>
  23. </head>
  24. <body onload="encodeStrings()">
  25.    <p></p>
  26. </body>
  27. </html>
复制代码

藤椅
Lisrelchen 发表于 2015-10-16 10:15:21
  1. Example 2-2. Explicit and implicit string conversions
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  3. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html  >
  5. <head>
  6. <title>Implicit and Explicit String Conversion</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <script type="text/javascript">
  9. //<![CDATA[

  10. function convertToString() {
  11.    var newNumber = 34.56;
  12.    var newBoolean = true;
  13.    var nothing;
  14.    var newNull = null;

  15.    var strNumber = String(newNumber); var strBoolean = String(newBoolean);
  16.    var strUndefined = String(nothing); var strNull = String(newNull);

  17.    var strOutput = "<p>" + strNumber + " " + strBoolean + " " + strUndefined + " "
  18. + strNull + "</p>";
  19.    document.writeln(strOutput);

  20.    var strOutput2 = String(document);
  21.    document.writeln(strOutput2);

  22. }
  23. //]]>
  24. </script>
  25. </head>
  26. <body onload="convertToString()">
  27.    <p></p>
  28. </body>
  29. </html>
复制代码

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

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2026-1-6 06:40