LCD- Project -Develope Records (二)

8.29日:完成开发环境的搭建
1.win7(32bit)+visual2013(先装visual2012,再装vissual2013)+Access+SQL

2.一个解决方案多个项目,三层架构。模型(MDL)+WEBAPI+WEB(后端+前端)

9.1日:
protected void Application_Start()
{
//Other calls…
Database.SetInitializer(new DropCreateDatabaseIfModelChanges());
}
This will recreate your Identity Database every time that Its model changes. The Context from Identity uses the same concept as any database you create using EF.

You can use other methods, just check here for more information and exemples: System.Data.Entity Namespace

EF Code First规约:
http://www.cnblogs.com/Gyoung/archive/2013/01/17/2864150.html

.ajax({                      //提交数据的类型 POST GET                      type: “POST”,                      //提交的网址                      url: “/BMW/Process/ImportDatas”,                      //提交的数据                      data: { Name: “sanmao”, Password: “sanmaoword” },                      //返回数据的格式                      datatype: “json”,//”xml”, “html”, “script”, “json”, “jsonp”, “text”.                      //在请求之前调用的函数                      beforeSend: function () { (“#msg”).html(“logining”); },
//成功返回之后调用的函数
success: function (data) {
$(“#msg”).html(decodeURI(data));
},
//调用执行后调用的函数
complete: function (XMLHttpRequest, textStatus) {
alert(XMLHttpRequest.responseText);
alert(textStatus);
//HideLoading();
},
//调用出错执行的函数
error: function () {
//请求出错处理
}
});

9.7日
异步调用局部视图
http://www.jb51.net/article/75584.htm

@{  ViewBag.Title = "Index";
  Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>Index</h2> <div>  <a href="#" id="a">通过jQuery异步</a> <br/> </div> <div id="result"> </div> @section scripts {  <script type="text/javascript">   $(function() {    $('#a').click(function() {     $.ajax({      url: '@Url.Action("Index","Home")',      data: { pre: 'B' },      type: 'POST',      success: function(data) {       $('#result').empty().append(data);      }     });     return false;    });   });  </script> } 

2018.02.06
windows 













 <video id='video' class='video-js vjs-default-skin ' controls preload='none'   width='400' height='200' poster='~/images/bmwvideo.png' data-setup="{}">
                    <source src='@item.picurl' type='video/mp4'>                   
                    <p class='vjs-no-js'>
                        To view this video please enable JavaScript, and consider upgrading to a web browser

                        that <a href='http://videojs.com/html5-video-support/' target='_blank'>supports HTML5 video</a>
                    </p>
                </video>

猜你喜欢

转载自blog.csdn.net/wyaspnet/article/details/77688304