当前位置: 首页 > news >正文

js 基础

Infinity 表示Js中的最大值,对应的 -Infinity;

Another special JavaScript numeric value is returned when a mathematical operation (such as division of zero by zero) yields an undefined result or an error. In this case, the result is the special not-a-number value, printed as NaN. The not-a-number value behaves unusually: it does not compare equal to any number, including itself! For this reason, a special function, isNaN( ), is required to test for this value. A related function, isFinite( ) , tests whether a number is not NaN and is not positive or negative infinity. 

string变量,length, charAt, substring, indexOf

function:

var square = function(x) { return x*x; } 

Functions defined in this way are sometimes called lambda functions in homage to the LISP programming language, which was one of the first to allow unnamed functions to be embedded as literal data values within a program. Although it is not immediately obvious why one might choose to use function literals in a program, we'll see later that in advanced scripts they can be quite convenient and useful. 

 

转载于:https://www.cnblogs.com/lostyue/archive/2012/03/26/2417867.html

相关文章:

  • 免费空间域名,简易免费安装百科网站教程!!!
  • 函数的弹性设计
  • 常见100个管理学定律
  • flexigrid
  • 内核开发基础——'make menuconfig' requires the ncurses libraries
  • COJ 1156 Switching bulbs
  • 配置Struts 2应用程序的安全功能
  • 程序猿的执业修养(四)——全力以赴,做到最好
  • 复杂报表中向上扩展
  • onMouseOut事件冒泡的问题解决
  • extjs 如何将局部的变量变为全局变量
  • ASP.net的身份验证方式FORMS
  • .net生成的类,跨工程调用显示注释
  • nginx 优化(突破十万并发)(转载记录)
  • 初等数论
  • [分享]iOS开发-关于在xcode中引用文件夹右边出现问号的解决办法
  • __proto__ 和 prototype的关系
  • Akka系列(七):Actor持久化之Akka persistence
  • es6要点
  • FineReport中如何实现自动滚屏效果
  • isset在php5.6-和php7.0+的一些差异
  • JavaScript函数式编程(一)
  • Javascript基础之Array数组API
  • Linux CTF 逆向入门
  • mysql常用命令汇总
  • underscore源码剖析之整体架构
  • 互联网大裁员:Java程序员失工作,焉知不能进ali?
  • 前端攻城师
  • 前端知识点整理(待续)
  • 如何用vue打造一个移动端音乐播放器
  • 使用docker-compose进行多节点部署
  • 微信小程序--------语音识别(前端自己也能玩)
  • 摩拜创始人胡玮炜也彻底离开了,共享单车行业还有未来吗? ...
  • ​3ds Max插件CG MAGIC图形板块为您提升线条效率!
  • ​学习一下,什么是预包装食品?​
  • #if #elif #endif
  • (3)选择元素——(14)接触DOM元素(Accessing DOM elements)
  • (C语言)fread与fwrite详解
  • (多级缓存)多级缓存
  • (附源码)计算机毕业设计SSM基于java的云顶博客系统
  • (顺序)容器的好伴侣 --- 容器适配器
  • .describe() python_Python-Win32com-Excel
  • .net 获取url的方法
  • .NET 指南:抽象化实现的基类
  • .net下的富文本编辑器FCKeditor的配置方法
  • /run/containerd/containerd.sock connect: connection refused
  • [145] 二叉树的后序遍历 js
  • [APIO2012] 派遣 dispatching
  • [Bada开发]初步入口函数介绍
  • [BIZ] - 1.金融交易系统特点
  • [BUUCTF 2018]Online Tool
  • [c#基础]DataTable的Select方法
  • [IE技巧] 使IE8以单进程的模式运行
  • [JS]变量
  • [Linux] MySQL数据库之索引