注册 登录
编程论坛 JavaScript论坛

javascript之般若波罗蜜

有容就大 发布于 2013-07-08 23:11, 1952 次点击
javascript并非java
DOM 就是Document Object Model 文档对象模型
客户端的javascript 为Web内容添加了行为 使它不在是静态的
求阶乘
<script>
var n = 1;
for (i = 1; i < 10; i++)
    {
        n = n * i;
        document.write(i + "! = " + n + "<br>");
    }
</script>
javascript 不仅能控制HTML文档的内容,而且能够制止这些文档的行为,他是通过文档定义事件句柄(event handler)来实现这一点的。
javascript在客户端的真正强大之处在于脚本能够访问HTML文档的内容。

用alert()来调试javascript。

我知道我在说什么吗?
29 回复
#2
有容就大2013-07-10 17:17
回复 2楼 ffgghhff
朋友 看不到你的图片哦
#3
有容就大2013-07-10 17:23
Javascript: The Definitive Guide, 5th Edition.
By David Flanagan
Publisher: O'Reilly
Pub Date: August 2006
Pages: 1018

书的封面画有一只健壮的犀牛。
这句话怎么翻译成English?
There is a strong rhino on the cover of the book?

或者是: There is a image of Javan rhinoceros on the cover of the book?


[ 本帖最后由 有容就大 于 2013-7-10 23:15 编辑 ]
#4
有容就大2013-07-10 17:29
example-driven programmer's guide
keep-on-your-desk reference.
#5
有容就大2013-07-10 17:30
Get the most out of ... 最有效的使用,发挥...的最大功效, 把...发挥到极致
To Get the most out of powershell , you should be familiar with the .Net Framework.

Scripted HTTP and Ajax.
XML processing
Client-side graphics using the <canvas> tag 使用<canvas>标记的客户端图形
Namespaces in Javascript--essential when writing complex programs
Classes, Closures, persistence, Flash, and Javascript embedded in Java applications.

Draw dynamic pie charts 绘制动态饼分图(圆形分析图)
Create Ajax-enabled tool tips 创建具备Ajax能力的工具提示
Use XPath and XSLT on XML documents loaded with Ajax 对Ajax载入的XML文档使用XPath和XSLT   ?
a Javan rhinoceros 一只爪哇犀牛

[ 本帖最后由 有容就大 于 2013-7-10 18:39 编辑 ]
#6
有容就大2013-07-11 07:30
Good morning everyone!
#7
wyxpop1632013-07-11 16:34
又一个JS初学者?
#8
有容就大2013-07-11 23:21
以下是引用wyxpop163在2013-7-11 16:34:06的发言:

又一个JS初学者?
只有本站会员才能查看附件,请 登录


是的 大婶 多多指教。
#9
诸葛修勤2013-07-11 23:44
学习。。。
#10
有容就大2013-07-11 23:48
以下是引用诸葛修勤在2013-7-11 23:44:35的发言:

学习。。。
向版主学习。
#11
有容就大2013-07-12 00:02
Client-Side persistence techniques   客户端持久化技术 这么翻译好不好
What is XMLHTTPRequest ?
scripted client-side graphics using SVG, VML, the Flash plug-in, and the Java plug-in.
#12
有容就大2013-07-17 00:08
Dan Shafer did some preliminary work on the third edition。初步的工作
Although his material was not used in this edition, his ideas and general outline were quite helpful.
大纲
#13
有容就大2013-07-18 23:53
Javascript is a loosely typed language, which means that variables do not
need to have a type specified. Objects in Javascript map property names to arbitrary property values.

map means 映射  arbitrary means 随意的 任意的

the little-known language Self. 很少知道的一种语言:Self.

Like Perl, Javascript is an interpreted language, and it draws inspiration from Perl in a number of areas, such as its regular-expression and array-handling features.

interpreted language 解释型语言
draw inspiration from 从...中获取灵感
regular-expression 正则表达式
array-handling 数组操作

Javascript is most commonly used in web browsers, and, in that context, the general-purpose core is extended with objects that allow scripts to interact with the user, control the web browser, and alter the document content that appears within the web browsers window.

javascript 在 web 浏览器中应用最为广泛, 在此环境中,通用目的的核心通过对象得到扩展,这些对象允许
脚步与用户交互,控制web 浏览器,以及修改出现在浏览器窗口中的文档内容。

this embedded version of javascript runs scripts embedded within HTML web pages.
这种嵌入式版本的Javascript运行嵌入到HTML web 页面中的脚步。

This is commonly called client-side javascript to emphasize that scripts are run by
the client computer rather than the web server.
他通常称作客户端的javascript,以强调脚本是由客户端计算机运行的而不是由web服务器运行的。

[ 本帖最后由 有容就大 于 2013-7-19 00:12 编辑 ]
#14
有容就大2013-07-19 00:03
哇 大公鸡又叫了。
#15
有容就大2013-07-19 00:25
The core Javascript language and its built-in datatypes are the subject of international standards,
and compatibility across implementations is very good.
Javascript 的核心语言及其内建的数据类型都符合国际标准,他们跨平台的兼容性都灰常的好。

Part of client-side javascript are formally standardized, other parts are de facto standards, and
other parts are browser-specific extensions.
客户端的javascript一部分是正式化标准的,其他一部分是事实上的标准,而另一部分是特定于浏览器的扩展。

Cross-browser compatibility is often an important concern for client-side javascript programmers.
跨浏览器的兼容性常常是客户端的javascript程序员所关心的一个重要问题。

embark (on) 乘船 装载 从事..

[ 本帖最后由 有容就大 于 2013-7-19 00:26 编辑 ]
#16
love云彩2013-07-19 01:59
这是啥东东?推荐几本电子版的JavaScript书来看看吧
#17
有容就大2013-07-19 12:46
回复 16楼 love云彩
我现在看的是 Javascript权威指南第五版 (英文版)。

手边还有个 Javascript权威指南第六版中文版的 呵呵

不是说看完这个东西 别的都是浮云了么
#18
love云彩2013-07-19 12:51
以下是引用有容就大在2013-7-19 12:46:30的发言:

我现在看的是 Javascript权威指南第五版 (英文版)。

手边还有个 Javascript权威指南第六版中文版的 呵呵

不是说看完这个东西 别的都是浮云了么

英文版你看得懂?难不成你是传说中的外国人?不可思议
#19
有容就大2013-07-19 12:52
回复 18楼 love云彩
慢慢看 反正有中文版的 也不怕看不明白。
#20
有容就大2013-07-21 00:16
Javascript is the subject of a fair bit of misinformation and confusion.
Before proceeding any further, it is important to debunk two common and persistent myths about the language.

a fair bit of 相当 不少
javascript是一个相当容易被误解和混淆的主题。
在对它进行进一步之前,有必要澄清两点长期存在的对该语言的误解。

One of the most common misconceptions about javascript is that it is a simplified version
of java, the programming language from Sun Microsystems.
对javascript最常见的误解就是认为他是Sun Microsystems公司的程序设计语言Java的简化版本。

Other  than an incomplete syntactic resemblance and the fact that both Java and Javascript
can provide executable content in web browsers, the two languages are entirely unrelated.
但是除了语法上有些相似之处以及都能够提供Web浏览器中的可执行内容之外,这两种语言是完全不相干的。

The similarity of names is purely a marketing ploy by Netscape and Sun(The language was originally
called LiveScript, its name was changed to Javascript at the last minute). However, Javacript can, in
fact, script Jave.
名称上的相似完全是Netscape和Sun的一种营销策略罢了(它最初叫LiveScript,最后才改成Javascript)。然而,实际上,Javascript可以脚本化Java.


[ 本帖最后由 有容就大 于 2013-7-21 00:28 编辑 ]
#21
love云彩2013-07-21 00:33
我才看了10多页,有点慢吞吞的感觉,不过感觉挺踏实
#22
δ不动ξ神王2013-07-21 13:59
0.0
#23
有容就大2013-07-22 07:13
Good Morning EveryOne...
#24
岁月如刀2013-07-22 10:21
Good boy! I think u will get the best result. Keep going!
#25
有容就大2013-07-22 11:50
回复 24楼 岁月如刀
Thank you, I will carry on.
#26
有容就大2013-07-23 00:51
Javascript is not simple

Because Javascript is interpreted instead of compiled, it is often considered a scripting langauge instead
of a true programming language.
由于Javascript是解释型的而不是编译型的语言,它往往被认为是一种脚本语言,而不被看作是一种真正的编程语言。

The implication is that scripting langauge are simpler and that they are programming languages for
nonprogrammers.
这种看法的潜台词是:脚本语言比较简单,它是非程序员所使用的编程语言。

The fact that Javascript is loosely typed does make it somewhat more forgiving for
unsophisticated programmers. And many web designers have been able to use javascript for limited,
cookbook-style programming tasks.
实际上,javascript的松散类型确实对缺乏经验的程序员很宽容。很多web设计者已经能够使用javascript来完成有限的,菜单式的任务。

 
#27
有容就大2013-07-26 18:16
Beneath its thin veneer of simplicity, however, Javascript is a full-featured rogramming language, as complex as any and more complex than some.
但是在简单的外表之下,javascript却是一种具有复杂功能的程序设计语言,它和其他所有语言一样复杂,甚至比某些语言还好复杂的多。

Programmer who attempt to use javascript for nontrivial tasks often found the process frustrating if they do not hava a solid understanding of the language.
如果一个程序员对javascript没有扎实的理解,那么当他要用javascript执行较复杂的任务时,就会发现这个过程困难重重。

This book documents javascript comprehensively so that you can develop a sophisticated understanding.
本书对javascript进行了详细的介绍,以便读者能深入的理解它。

#28
有容就大2013-08-06 17:08
最近很忙 暂停一下。
#29
love云彩2013-08-08 00:50
以下是引用有容就大在2013-8-6 17:08:38的发言:

最近很忙 暂停一下。

再忙也要抽时间学习,等过一段时间,我们一起交流一下
#30
有容就大2013-08-09 17:36
回复 29楼 love云彩
好啊
1