MIP.watch('count', function (newVal, oldVal) { fetch('http://www.chazidian.com/kaoshi/ajaxapi/?action=guanzhu&id=30249&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('数据请求失败!') }) })

Javascript 可以在浏览器中执行,也可以在 Web服务器上执行

A、True
B、False
C、忽略此选项
D、忽略此选项
查看答案
正确答案:

A

答案解析:

暂无解析

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

重写句子:Whenwearerelievedofworkingpressuresoftheoffice,wecanenjoyhappinessandrelaxationathome.(modifyingphrase)

句子写作:Mypresentationseemedtogowell.

Idon’tneedanyhelpatthemoment,butI_____youroffer.

A、appreciate
B、admire
C、enjoy
D、like

句子写作:TodayatschoolMrMoorebroughtinhispetrabbit.Heshowedittotheclass.

It_______methreeyearstodrawthebeautifulhorses.

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