摘要: 一、项目中必须引用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)
摘要: 这个小插件是对bootstrap 原带的弹出框和工具小提示小插件扩展,在bootstrap下引用一下他的js--bootstrap-confirmation.min.js。主要两个问题:1、bootstrap的popover,弹框无法值弹一个,字段关闭一个,这个插件有个singleton,完美解决。... 阅读全文
posted @ 2017-06-19 13:11 彭涛 阅读(212) 评论(0) 推荐(0)
摘要: 一、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)
摘要: BootstrapModal插件的模态弹窗是个常用的插件,但是实际工作中,它可能还不能完全满足我们的需求。一般来说我们经常使用两种弹窗:一种是Info弹窗(信息确认框,带有“确认”和“取消”按钮),一种是Form弹窗(表单提交框,但“提交”按钮通常是利用Ajax技术提交)。Bootstrap所有的J... 阅读全文
posted @ 2017-06-12 10:53 彭涛 阅读(189) 评论(0) 推荐(0)
摘要: 一、非强类型:第一种,还是级联var ProductsSortList是数据库查询的List做成Json传给客户端,用jq处理3、JQ第二种,纯种MVCController:var ProductsSortList是数据库查询的下拉框绑定做成SelectListItem var ProductsSo... 阅读全文
posted @ 2016-12-27 11:11 彭涛 阅读(320) 评论(0) 推荐(0)
摘要: 1、mvc一般在BundleConfig.cs中全局绑定引入jq,所以只引入ckfinder.js在plugins下拷贝ckfinder就可以2、因为用了jQuery所以也引了下,写原生js也很简单。下面是主要js代码:/** * 通过ckfinder独立上传文件或图片 *///初始化ckfinde... 阅读全文
posted @ 2016-12-23 15:45 彭涛 阅读(198) 评论(0) 推荐(0)
摘要: jquery操作select(取值,设置选中) 每一次操作select的时候,总是要出来翻一下资料,不如自己总结一下,以后就翻这里了。 比如 1、设置value为pxx的项选中 $(".selector").val("pxx"); 2、设置text为pxx的项选中 $(".selector").fi... 阅读全文
posted @ 2016-12-22 17:46 彭涛 阅读(165) 评论(0) 推荐(0)
摘要: 树形菜单,可以简单的认为是标签的嵌套,在Html中的格式就是1、HTML2、控制器利用,强类型 public ActionResult ProductsSortTree() { var ProductsSortList = OperateContext.Curr... 阅读全文
posted @ 2016-12-09 12:30 彭涛 阅读(749) 评论(0) 推荐(0)
摘要: 方法一 document.getElementById("selectid").options.length = 0; 方法二 document.formName.selectName.options.length = 0; 方法三 document.getElementById("selectid... 阅读全文
posted @ 2016-12-08 17:27 彭涛 阅读(164) 评论(0) 推荐(0)
摘要: 1、准备数据的action public ActionResult Index() { var Drplist = OperateContext.Current.BLLSession.IProductsSortBLL.GetListBy(s => s.Product... 阅读全文
posted @ 2016-12-08 16:42 彭涛 阅读(417) 评论(0) 推荐(0)