showCase(new String('A'));
来源:互联网 发布:亚马逊德国站情况知乎 编辑:程序博客网 时间:2024/05/21 06:11
value为一个对象
<!DOCTYPE html><html><head></head><body><script>function showCase(value){ debugger; switch(value){ case 'A': console.log(' Case A'); break; case 'B': console.log(' Case B'); break; case undefined: console.log(' undefined'); break; default: console.log('do not know'); }}showCase(new String('A'));</script></body></html>
运行结果:
do not know
阅读全文
0 0
- showCase(new String('A'));
- showcase
- showcase
- String a="1"; String a=new String(); String a=new String("1")区别
- String a="1"; String a=new String(); String a=new String("1")区别
- string a="1"; string a=new string(); string a=new string("1")区别
- String a="1"; String a=new String(); String a=new String("1")区别
- String a = new String(); "" null
- a string intern pool,new string 存贮
- String a=new String("a") 创建了几个对象
- String a = new String(new char[] { 'a', 'b', 'c', 'd' });
- String a=new String("abc")产生几个对象?
- String a = new String("b");到底是几个对象
- String a = new String("b");到底是几个对象
- new String("abc")与String a="abc"的区别
- String a=new String(“abc”)的深奥
- String a=new String("abc")创建了几个对象
- String a = "sss";和String a = new String("sss");有什么区别吗?
- Linux(CentOS7.3)使用yum安装MySQL
- Java new一个子类对象时static和构造函数的执行顺序
- vue axios POST请求中参数以form data和request payload形式的原因
- SCUT Training 20170920 Problem F
- 1013. 数素数 (20)
- showCase(new String('A'));
- 等高布局
- Mac系统中Python3的安装与切换
- C++输入输出格式问题
- Android之Linerlayout、RelativeLayout、FrameLayout性能比较
- 学习笔记(五)装饰器、迭代器、匿名函数
- 操作系统之分段
- JavaScript数字
- 单身狗脱单算法 脱单了算你赢