错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

User Interfaces: How Do I Input and Output Data?

  • Joachim L. Zuckarelli

摘要

JavaScript is the language of the web. So, it’s no wonder that inputting and outputting data is almost entirely about interacting with the web page on which your JavaScript program is running. In this chapter, we’ll discuss how to make your program interact with the web page in which it’s embedded, specifically how to read data from the user through forms and graphical user interface controls, and how to manipulate elements of the web page using the Document Object Model (DOM). In addition to discussing examples, you will also develop a small application yourself (with solution) as an exercise.