数据类型判断 数据类型有 number string boolean null undefined function object 这些,那如何去判断数据对应的是哪种类型呢 typeof可以判断对应数据类型 写法: typeof data 或者 typeof(data) , 一般习惯写后面这种 返回 ...
分类:
编程语言 时间:
2020-07-15 23:25:22
阅读次数:
72
Description A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string "13" and can be divided by 13. ...
分类:
其他好文 时间:
2020-07-15 23:20:22
阅读次数:
96
地址:https://leetcode-cn.com/problems/maximum-lcci/ <?php /** 编写一个方法,找出两个数字a和b中最大的那一个。不得使用if-else或其他比较运算符。 示例: 输入: a = 1, b = 2 输出: 2 */ class Solution ...
分类:
其他好文 时间:
2020-07-15 22:43:51
阅读次数:
79
https://medium.com/terra-money/survey-of-automated-market-making-algorithms-951f91ce727a Automated market makers are routinely adopted in a number of ...
分类:
其他好文 时间:
2020-07-15 15:45:37
阅读次数:
60
var exp=undefinded; if(typeof(exp)=="undefined") { //变量是undefined的处理 } typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、"undefined ...
分类:
编程语言 时间:
2020-07-15 15:38:30
阅读次数:
72
Angle Between Hands of a Clock (M) 题目 Given two numbers, hour and minutes. Return the smaller angle (in degrees) formed between the hour and the minut ...
分类:
其他好文 时间:
2020-07-15 10:47:17
阅读次数:
102
Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte ...
分类:
其他好文 时间:
2020-07-15 01:00:03
阅读次数:
73
260 Single Number III Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. ...
分类:
其他好文 时间:
2020-07-14 21:54:31
阅读次数:
104
效果图 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user ...
分类:
Web程序 时间:
2020-07-14 18:34:16
阅读次数:
252
转换函数、强制类型转换、利用js变量弱类型转换。 1. 转换函数: js提供了parseInt()和parseFloat()两个转换函数。前者把值转换成整数,后者把值转换成浮点数。只有对String类型调用这些方法,这两个函数才能正确运行;对其他类型返回的都是NaN(Not a Number)。 一 ...
分类:
Web程序 时间:
2020-07-14 11:45:19
阅读次数:
74