会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一个苦逼老程序猿的落日黄昏
我没有钱、也没有地方、而我只有过去!
博客园
首页
新随笔
联系
订阅
管理
2017年8月7日
mvcpager之学习
摘要: 一、项目中必须引用MVCpager.dll,现在是3.0版本。 二、添加页面view.Model namespace Model.ViewModel { public class VolumeTree { public int VolumeID { get; set; } public string
阅读全文
posted @ 2017-08-07 11:56 彭涛
阅读(154)
评论(0)
推荐(0)
2017年6月19日
Bootstrap Confirmation之我得
摘要: 这个小插件是对bootstrap 原带的弹出框和工具小提示小插件扩展,在bootstrap下引用一下他的js--bootstrap-confirmation.min.js。主要两个问题:1、bootstrap的popover,弹框无法值弹一个,字段关闭一个,这个插件有个singleton,完美解决。...
阅读全文
posted @ 2017-06-19 13:11 彭涛
阅读(212)
评论(0)
推荐(0)
2017年6月15日
Bootstrap树形菜单,就这么简单
摘要: 一、CSS部分:.tree { min-height:20px; padding:19px; margin-bottom:20px; background-color:#fbfbfb; border:1px solid #999; -webkit-border-r...
阅读全文
posted @ 2017-06-15 14:44 彭涛
阅读(2483)
评论(0)
推荐(0)
2017年6月12日
Bootstrap扩展Modal弹窗
摘要: BootstrapModal插件的模态弹窗是个常用的插件,但是实际工作中,它可能还不能完全满足我们的需求。一般来说我们经常使用两种弹窗:一种是Info弹窗(信息确认框,带有“确认”和“取消”按钮),一种是Form弹窗(表单提交框,但“提交”按钮通常是利用Ajax技术提交)。Bootstrap所有的J...
阅读全文
posted @ 2017-06-12 10:53 彭涛
阅读(189)
评论(0)
推荐(0)
2016年12月27日
MVC Html.DropDownList 和DropDownListFor 的常用方法
摘要: 一、非强类型:第一种,还是级联var ProductsSortList是数据库查询的List做成Json传给客户端,用jq处理3、JQ第二种,纯种MVCController:var ProductsSortList是数据库查询的下拉框绑定做成SelectListItem var ProductsSo...
阅读全文
posted @ 2016-12-27 11:11 彭涛
阅读(320)
评论(0)
推荐(0)
2016年12月23日
mvc单独ckfinder 图片上传
摘要: 1、mvc一般在BundleConfig.cs中全局绑定引入jq,所以只引入ckfinder.js在plugins下拷贝ckfinder就可以2、因为用了jQuery所以也引了下,写原生js也很简单。下面是主要js代码:/** * 通过ckfinder独立上传文件或图片 *///初始化ckfinde...
阅读全文
posted @ 2016-12-23 15:45 彭涛
阅读(198)
评论(0)
推荐(0)
2016年12月22日
Js操作Select大全(取值、设置选中等等)
摘要: jquery操作select(取值,设置选中) 每一次操作select的时候,总是要出来翻一下资料,不如自己总结一下,以后就翻这里了。 比如 1、设置value为pxx的项选中 $(".selector").val("pxx"); 2、设置text为pxx的项选中 $(".selector").fi...
阅读全文
posted @ 2016-12-22 17:46 彭涛
阅读(165)
评论(0)
推荐(0)
2016年12月9日
MVC+EF实现树形菜单
摘要: 树形菜单,可以简单的认为是标签的嵌套,在Html中的格式就是1、HTML2、控制器利用,强类型 public ActionResult ProductsSortTree() { var ProductsSortList = OperateContext.Curr...
阅读全文
posted @ 2016-12-09 12:30 彭涛
阅读(749)
评论(0)
推荐(0)
2016年12月8日
清空select标签中option选项的4种不同方式
摘要: 方法一 document.getElementById("selectid").options.length = 0; 方法二 document.formName.selectName.options.length = 0; 方法三 document.getElementById("selectid...
阅读全文
posted @ 2016-12-08 17:27 彭涛
阅读(164)
评论(0)
推荐(0)
mvc用ViewData实现下拉列表的级联
摘要: 1、准备数据的action public ActionResult Index() { var Drplist = OperateContext.Current.BLLSession.IProductsSortBLL.GetListBy(s => s.Product...
阅读全文
posted @ 2016-12-08 16:42 彭涛
阅读(417)
评论(0)
推荐(0)
下一页
公告