MIP.watch('count', function (newVal, oldVal) { fetch('http://www.chazidian.com/kaoshi/ajaxapi/?action=guanzhu&id=126224&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

答案解析:

暂无解析

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

尾矿库等别划分几级。

A、一、二、三、四、五;
B、一、二、三、四;
C、一、二、三;

煤矿井下避难硐室是矿工在遇到事故无法撤退时躲避待救的设施。

在方便的情况下,可以用喊话.敲管子等方法发送信号。

安全监测监控系统在电网停电后,系统必须保证正常工作时间不小于1h。

稻茬的种类可分为:单开道岔、对称道岔、渡线道岔。

热门试题 更多>
相关题库更多>
公共基础
Python语言程序设计
MS Office高级应用
Web程序设计
MySQL数据库程序设计