English 中文(简体)
什么意思是 Java的“动力”?
原标题:What does it mean that JavaScript is "dynamic"?
最佳回答

多数语言具有动态行为的某些方面。 即使是静态的类型语言也可以有动态或变式的数据类型,可以包含不同的数据类型。

Java本被称为一种动态语言,因为它仅具有几个动态方面,而几乎所有东西都是动态的。

所有变量都是动态的(在类型和存在方面),甚至代码是动态的。 您可以在操作时间产生新的变量,变量类型在操作时间确定。 你可以随时建立新的职能,或取代现有的职能。 当浏览器使用时,如果装上更多的文字档案,就会添加代码,而且你可以装上更多的文件。

如今,《 Java》已在许多实施过程中汇编成册,而静态代码和静态类型则在背景中产生。 然而,行为仍然活跃,汇编者只有在发现动态方面未用于特定用途时才会产生静态类型。

问题回答

比较活跃的最有意义的、定义最明确的方式是,它有动态的类型:语言有数据类型,但在方案实际运行之前,没有核实方案类型是“证明”。 与此相反的是静态分类,也就是说,方案类型在管理之前由检查其来源代码的方案加以核查。 (例如, Java和刚果解放运动都是静态的。)

JavaScript is a dynamic language which means that variables are not statically typed, meaning they can hold values of different types during runtime. Ex :

页: 1

x = 真实性;/x 现在是一个诱杀装置

x = “Hello world ”;





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签