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

用.NET做B/S结构的系统,你一般用几层结构来开发?为什么要这样开发?

查看答案
正确答案:

答: 分三层,即采用 MVC的模式,可大大缩短编程的时间,节约成本,其次,以后维护起来也方便!

第一层 -- 表示层:即视图,用来与客户交互。

第二层 -- 业务逻辑层:即业务类,所有的相关的业务全部放在这个层里面。

第三层 -- 数据访问层:即与数据库进行交互。

答案解析:

暂无解析

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

C#中声明枚举类型是用()关键字声明。

A、struct
B、enum
C、const
D、ushort

设在表单中有一组复选钮标记,如下列代码:如果在register.jsp是取city的值,最适合的方法为()。

A、Stringcity=requestgetParameter(“city”);
B、String[]cities=requestgetParameter(“city”);
C、String[]cities=requestgetParameterValues(“city”);
D、Stringcity=requestgetAttribute(“city”);

在WEB应用程序的目录结构中,在WEB-INF文件夹中的lib目录是放()文件的。

A、jsp文件
B、class文件
C、jar文件
D、webxml文件

为了标识一个HTML文件,应该使用的HTML标记是______。

A、<p></p>
B、<head></head>
C、<html></html>
D、<form></form>

用来实现换行的HTML标记是________。

A、
B、
C、

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