摘要: $(function(){ $("#btn_login").click(function() { var anv=$("#an").val(); //登录名 var pwv=$("#pw").val(); //登录密码 if (anv=='' || /\'/g.test(anv)) { //判断登录名为空 或 用户名包含... 阅读全文
posted @ 2017-12-13 16:37 enych 阅读(740) 评论(0) 推荐(0)
摘要: 删除 阅读全文
posted @ 2017-12-13 11:49 enych 阅读(238) 评论(0) 推荐(0)
摘要: 删除方法 阅读全文
posted @ 2017-12-13 08:25 enych 阅读(190) 评论(0) 推荐(0)
摘要: 读取数据 var model = db.Database.SqlQuery<类>("exec 存储过程名字 @type,@town,@village", paras).ToList(); 执行存储过程 var data = db.Database.SqlQuery< 类 >("select * .. 阅读全文
posted @ 2017-12-11 17:24 enych 阅读(438) 评论(0) 推荐(0)
摘要: 项目右键 管理NuGet 程序包 ; 添加EntityFramework ef框架 编写BookDB类;继承DbContext Book类 配置文件添加 <connectionStrings> <add name="BookDB" connectionString="server=.;uid=sa; 阅读全文
posted @ 2017-12-07 10:09 enych 阅读(191) 评论(0) 推荐(0)
摘要: LibraryEntities db = new LibraryEntities(); private void btnSelect_Click(object sender, EventArgs e) { //查询语句 List book = db.BookInfo.ToList(); ... 阅读全文
posted @ 2017-12-05 11:15 enych 阅读(200) 评论(0) 推荐(0)
摘要: jQuery(document).ready(function () { $.ajax({ url: 'http://v.juhe.cn/sms/send?callback=callback', dataType: 'jsonp', jsonp: 'callback', ... 阅读全文
posted @ 2017-12-04 08:42 enych 阅读(149) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Net; using System.Text; using Sy... 阅读全文
posted @ 2017-12-01 15:14 enych 阅读(626) 评论(0) 推荐(0)
摘要: Jq代码 用户信息类 /// /// 包含用户的基本信息 /// public class Person { /// /// 获取或设置用户名 /// public string Name { get; set; } /// /// 获取或设置用户年龄 /// public int Age { get; set; ... 阅读全文
posted @ 2017-12-01 10:04 enych 阅读(1206) 评论(0) 推荐(0)
摘要: var xhr1 = function () { if (typeof XMLHttpRequest != 'undefined') { return new XMLHttpRequest(); } }(); var xhr2 = (function () { if (typeof XMLHttpR 阅读全文
posted @ 2017-11-30 17:53 enych 阅读(369) 评论(0) 推荐(0)