codefirst 添加自增字段
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
codefirst 添加自增字段
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
ASP.NET MVC模式:一个页面对应一个action函数
经典模式:一个页面对应一个类
使用JS将textarea滚动至底部
var textarea = document.getElementById('id');textarea.scrollTop = textarea.scrollHeight;