码迷,mamicode.com
首页 >  
搜索关键字:console output    ( 25228个结果
switch判断中,case后面跟逻辑表达式出错
let status=1; switch (status) { case 1: console.log("status为1的时候你将做的事"); break; case 2: console.log("status为2的时候你将做的事"); break; case 3: console.log("s ...
分类:其他好文   时间:2021-01-08 11:19:20    阅读次数:0
93. Restore IP Addresses
问题: 给定一串由数字构成的字符串。 给任意两个数字间添加'.',一共加3次,求能得到的所有有效的IP格式。 Example 1: Input: s = "25525511135" Output: ["255.255.11.135","255.255.111.35"] Example 2: Inpu ...
分类:其他好文   时间:2021-01-08 11:18:15    阅读次数:0
CCNA-实验1-Manage_IOS
实验1:Manage_IOS 实验目的 掌握Cisco IOS命令行的基本操作 掌握设备的常用基本命令 设备Console信息抓取和识别 需求: 配置设备主机名,设置时区及系统时间 配置“新手三条”:关闭域名解析、Console永不超时、Console权限 创建MOTD 设置和取消密码:Consol ...
分类:移动开发   时间:2021-01-07 11:52:55    阅读次数:0
vue watch 使用的几种形式
<script> export default { data() { return { a: 1, b: 2, c: 3, d: 4, e: { f: { g: 5 } } } }, watch: { a: function(val, oldVal) { console.log('new: %s, ...
分类:其他好文   时间:2021-01-07 11:49:57    阅读次数:0
剑指offer JZ-9
题目描述 一只青蛙一次可以跳上1级台阶,也可以跳上2级……它也可以跳上n级。求该青蛙跳上一个n级的台阶总共有多少种跳法。 示例1 输入 复制 3 返回值 复制 4 思路 JZ-8的简单变形,定义dp[k]为到达第k阶台阶的方案数 不难看出:dp[k] = dp[1] + dp[2] + dp[3] ...
分类:其他好文   时间:2021-01-06 12:34:01    阅读次数:0
22. Generate Parentheses
问题: 给定一个计量括号数量的数字n,求所有的括号组合可能序列。 Example 1: Input: n = 3 Output: ["((()))","(()())","(())()","()(())","()()()"] Example 2: Input: n = 1 Output: ["()"] ...
分类:其他好文   时间:2021-01-05 11:32:45    阅读次数:0
Unity编辑器调用外部exe程序
直接来,1个脚本 using System.Collections; using System.Collections.Generic; using System.Diagnostics; using UnityEditor; using Debug = UnityEngine.Debug; pub ...
分类:编程语言   时间:2021-01-05 11:22:10    阅读次数:0
读js语言精粹收获
1.js可以根据选择跳出多层循环【在循环前加个标签】 label:for(var i=0;i<2;i++){ for(var j=0;j<10;j++){ console.log(i,j); if(j==3){ break label; } } } 2.typeof运算符产生的值只有'number' ...
分类:编程语言   时间:2021-01-05 11:09:31    阅读次数:0
TypeScript随笔
1: any 和 unknown类型的区别 any可以避开类型检查, 比如 let notSure: any = 'XXXXX'; notSure.Hello(); unknown在使用时必须进行类型断言: let x: unknown = 'xxxxxx'; console.log((x as s ...
分类:其他好文   时间:2021-01-05 10:50:47    阅读次数:0
问题总结20-12-28至20-12-31
?fetch('ftp://example.com').catch(err => console.error('Caught error: ', err) ?判断一个变量是不是NaN isNaN( )判断字符串的时候也会返回true。 1 var a = "str"; 2 var b = 2; 3 ...
分类:其他好文   时间:2021-01-04 11:11:28    阅读次数:0
25228条   上一页 1 ... 40 41 42 43 44 ... 2523 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!