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 () {
.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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值