小记-一些问题的解决方法

1.在mvc模式中controller调用不了models中的类

解决方法:using 【项目名】.models;

在视图中可以通过:【项目名】.models.类名

 2.location.href只有在ie中有效

解决方法:改为:

location = 

 

3.关于js中获取DropDownList和RadioButtonList 选择的值

DropDownList用document.getElementById,然后选择的值用selected

RadioButtonList 用document.getElementsByName,然后选择的值用checked

 

posted @ 2016-05-25 22:36  hamburger  阅读(171)  评论(0编辑  收藏  举报