• JS常用单词


    push :添加一个数组元素

    document :文档

    pop :删除最后一个数组元素

    console :控制台

    shift :删除第一个数组元素

    string :字符串

    Concat 组合数组

    undefined :未定义

    typeof :关键字

    join:数组转化为指定分隔符

    slice:返回指定数组

    length:数组长度

    Array:数组

    number:数字

    boolean:布尔

    alert:提示框

    parseInt:转化为整型数值

    continue:继续

    is NaN:非数字

    sort:升序

    break:截断 跳出

    reverse:倒序

    object:对象类型

    parseFloat:转化为浮点值

    index:索引

    floor:向下取整

    variable:变量

    ceil:向上取整

    round:四舍五入

    abs:返回绝对值

    eval:解析字符串并运算

    max:比较最大值

    return:返回

    min:比较最小值

    addEventListener:事件名 函数

    to.fixed:保留小数点

    attachEvant:(on)事件名

    random:随机数

    eletment:元素

    onclick:鼠标单击事件

    eventName:事件名

    ondblclick:鼠标双击事件

    function:函数

    onselect:内容被选中事件

    removeEventListener:事件解除

    onmouseover:鼠标移入事件

    detachEvent:删除已注册事件

    onmouseout:鼠标移出事件

    open():弹出一个新窗口

    onfocus:获得焦点事件

    function:函数(方法)

    showModalDialog:弹出一个模式窗口

    close():关闭当前窗口

    onblur:失去焦点事件

    onkeydown:键盘按下事件(前)

    Date:日期对象

    onkeyup:键盘松开事件

    onkeypress:键盘按下事件(后)

    getFullYear():年份

    getMonth():月份(0--11)

    getDate():几号

    getDay():星期几(周一至周六)

    getHours():小时(0--23)

    getMinites():分钟

    getSeconds():秒数(0--59)

    getMilliseconds():毫秒数

    getTime():从1970至今的毫秒数

    Date.now():从1970至今的毫秒值

    tolocaleDatestring():输出本地化的日期

    setTimeout:延迟时间

    tolocaleTimestring():输出本地化得时间

    clearTimeout:定时器对象

    tolocalestring:输出本地化的日期和时间

    setInterval:间隔时间

    clearInterval:停止

  • 相关阅读:
    aspnetcore identity result.Succeeded SignInManager.IsSignedIn(User) false?
    RFID
    window 关机
    有赞零售小票打印图片二值化方案
    条码打印
    音频基本概念
    2008R2 部署 aspnetcore repair failed 函数不正确
    IIS 字符串过长
    解决MVC Json序列化的循环引用问题/EF Json序列化循引用问题---Newtonsoft.Json
    book
  • 原文地址:https://www.cnblogs.com/liuqr/p/7104185.html
Copyright © 2020-2023  润新知