`

JavaScript Learn

阅读更多
JavaScript规范:
1.在html中添加:
    <script type="text/javascript">
alert("您好!");
    </script>
2.在html 中引用js文件要注意路径
    <script type="text/javascript" src="first.js"></script>
3.在html 中引用
    <script type="text/javascript">
    <!-- //这个的目的是在不同的浏览器中使用时候如果浏览器不支持js,就不会显示
          //否则用户会看到不应该看到的内容。
       alert("您好!");
      -->
    </script>
4.注释
//表示单行注释
/**
*   多行注释
*/
写函数和变量时候最好有注释,为了一年后能看代码省时间。
5.变量名字和函数名字最好要用驼峰,字母和数字结合起名字,名字要有意义。
注意:无论是学习那种语言,大小写就是分开的。
分享到:
评论

相关推荐

    Full Stack JavaScript Learn Backbone.js Node.js and MongoDB (2nd Edition).pdf

    在当代软件开发领域中,全栈JavaScript开发已经成为一个重要的趋势,其中前端和后端技术的结合能够极大地提升开发效率和项目质量。《Full Stack JavaScript:学习Backbone.js, Node.js和MongoDB(第二版)》这本书,...

    JavaScript for .NET Developers(PACKT,2016)

    Learn how to use JavaScript on server side using Node.js Develop web applications in ASP.NET using JavaScript Get to know with industry-wide best practices and design patterns that provide ...

    Learn HTML5 and JavaScript for Android 无水印原版pdf

    Learn HTML5 and JavaScript for Android 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看...

    Learn JavaScript with p5.js--2018年

    在《Learn JavaScript with p5.js》这本书中,作者Engin Arslan带领读者从零开始学习如何使用JavaScript和p5.js库创建计算机图形。本书面向初学者,特别是那些对视觉学习感兴趣的人士。 **JavaScript**是一种广泛...

    JavaScript for Sound Artists: Learn to Code with the Web Audio API

    Learn how to program JavaScript while creating interactive audio applications with JavaScript for Sound Artists: Learn to Code With the Web Audio API! William Turner and Steve Leonard showcase the ...

    A Smarter Way to Learn JavaScript.pdf

    《A Smarter Way to Learn JavaScript》是一本面向初学者的JavaScript学习书籍,它旨在通过使用技术手段来减少学习过程中的努力,帮助学习者快速掌握JavaScript的基本语法,并学会如何使用JavaScript操作HTML。...

    javascript和ajax学习指南 Learn_JavaScript_and_Ajax_with_w3Schools.zip

    这份"Learn_JavaScript_and_Ajax_with_w3Schools.zip"压缩包包含了一个电子书和一个文本文件,旨在帮助学习者掌握这两种技术的核心概念。 JavaScript,全称ECMAScript,是一种轻量级的解释型编程语言,主要用于网页...

    A samart way to learn javascript

    《一种学习JavaScript的聪明方式》这本书的目录详细地梳理了学习JavaScript的基础知识和技巧,将教学内容分为多个章节,每个章节都专注于一个特定的主题或概念,使读者能按部就班地学习编程语言。以下是根据目录内容...

    web scraping with python collecting more data from the modern web 2nd

    Learn web scraping and crawling techniques to access unlimited data from any web source in any format....Understand how to scrape JavaScript Learn image processing and text recognition

    CSS Cookbook, 3rd Edition

    Book Description Learn how to solve the real problems you face with CSS....Get creative by combining CSS with JavaScript Learn useful troubleshooting techniques Explore features of HTML5 and CSS3

    Speaking JavaScript

    Like it or not, JavaScript is everywhere these days—from browser to server to mobile—and now you, too, need to learn the language or dive deeper than you have. This concise book guides you into and ...

    Learn JavaScript

    ### JavaScript学习指南:《Learn JavaScript》 #### 一、书籍概览 本书《Learn JavaScript》由Chuck Easttom撰写,由Wordware Publishing, Inc.出版。该书采用实用的方法来教授如何利用JavaScript增强网页功能,...

    Learn JavaScript In a Weekend 2003

    Learn JavaScript In a Weekend, 2nd Edition is the ultimate guide to integrating JavaScript into Web pages. With step-by-step instructions, readers will learn how to effectively use JavaScript, the ...

Global site tag (gtag.js) - Google Analytics