1、此文档是毕业设计外文翻译成品( 含英文原文+中文翻译) ,无需调整复杂的格 式!下载之后直接可用,方便快捷!本文价格不贵,也就几十块钱!一辈子也就 一次的事! 外文标题:Writing Scripts in Nashorn 外文作者:Kishori Sharan 文献出处: Scripting in Java Integrating with Groovy and JavaScript,2018 (如觉得年份太老,可改为近 2 年,毕竟很多毕业生都这样做) 英文 4116 单词,23761 字符(字符就是印刷符),中文 6364 汉字。 (如果字数多 了,可自行删减,大多数学校都是要求选取外文
2、的一部分内容进行翻译的。 ) Writing Scripts in Nashorn In this chapter, you will learn: 1.How to write scripts in Nashorn 2.The difference between running the script in strict mode and nonstrict mode 3.How to declare variables and write comments 4.Primitive and object data types, and how to convert values of one
3、 data type to another data type 5.Operators, statements, and creating and invoking functions in Nashorn 6.Different ways of creating and using objects 7.Variable scoping and hoisting 8.About built-in global objects and functions Nashorn is a runtime implementation of the ECMAScript 5.1 specification
4、 on the JVM. ECMAScript defines its own syntax and constructs for declaring variables, writing statements, operators, creating and using objects, collections, iterating over collections of data, and so on. Nashorn is 100 percent compliant with the ECMAScript 5.1, so you have a new set of language syntax to learn when you work with Nashorn. For example, working with objects in Nashorn is entirely different from working with objects in Java. This chapter assumes that you have at least a beg