摘要:为前端文章的目录创建一些提示,以记录一些常用的工具和方法,确定数据类型,并定义多个可变方法和多行字符串。 定义数据类型,多个变量方法和多行字符串。 Duojinsai Pan a Duojinsai Pan an
记录常用的JS工具方法和前端开发的一些技巧
文章目录1。 确定数据类型2。 方法3用于定义多个变量。 多行字符串
1。确定数据类型const typeofdata = o => o == null? 字符串(o):object.prototype.tostring.call(o).slice(8,- 1).tolowercase()
2。 多变量方法var express = require(“ express”),http = require(“ http”),app = express(),domain = require(“ domain”),trycatch = require(“ trycatch”); 多行字符串const content =`1。 Tonkin2。1803。 saipan`const othercontent =“/1。tonkin/2。180/3。Saipan/”
评论前必须登录!
注册