MIP.watch('count', function (newVal, oldVal) { fetch('http://www.chazidian.com/kaoshi/ajaxapi/?action=guanzhu&id=30429&type=2') .then(function (res) { var follows2 = MIP.getData('follows') if(follows2==1){ MIP.setData({ follows:2, title:'收藏' }) } if(follows2==2){ console.log(2) MIP.setData({ follows:1, title:'已收藏' }) } }) .catch(function (err) { console.log('数据请求失败!') }) })

swtich 是否能作用在 byte 上,是否能作用在 long 上,是否能作用在 String 上?

查看答案
正确答案:

答:switch (expr1 )中, expr1 是一个整数表达式。因此传递给 switch 和 case 语句的参数应该是 int 、 short 、 char 或者 byte 。long,string 都不能作用于 swtich

答案解析:

暂无解析

上一题
你可能感兴趣的试题

在 J2EE中,request 对象的( )方法可以获取页面请求中一个表单组件 对应多个值时的用户的请求数据。

A、StringgetParameter(Stringname)
B、String[]getParameter(Stringname)
C、StringgetParameterValuses(Stringname)
D、String[]getParameterValues(Stringname)

假设在 helloapp 应用中有一个 HelloServlet 类,它位于 org.javathinker 包 下,那么这个类的 class 文件应该放在( )目录下

A、helloapp/HelloServletclass
B、helloapp/WEB-INF/HelloServletclass
C、helloapp/WEB-INF/classes/HelloServletclass
D、helloapp/WEB-INF/classes/org/javathinker/HelloServletclass

HTML 文档中使用绘制水平线需要用以下哪个标签

A、
B、
C、
D、

静态网页文件的后缀是( )

A、asp
B、aspx
C、htm
D、jsp

连接 SQL Server 数据库,使用 ( )指定数据库名。

A、InitialCatalog
B、Catalog
C、Database
D、A和C
热门试题 更多>
相关题库更多>
公共基础
Python语言程序设计
MS Office高级应用
Web程序设计
MySQL数据库程序设计