09 2015 档案
摘要:1.Highcharts JS去除Highcharts.com链接的方法在js文件中找到Credits,然后把enable的属性从!0改为0。也可以更改为自己需要的:enabled:设置是否显示链接text:设置链接显示的名称href:设置链接的url2.去掉图片右上角的打印及导出按钮在js中设置以...
阅读全文
摘要:@Html.TextBox("ProductNumber", "输入产品编号", new { oninput = "ch()",onfocus="test()"})oninput是改变文本框内容触发 onfocus是获得焦点时触发
阅读全文
摘要:$(function () { $("#CompanyID").change(function () { var uid = $(this).val(); changediv(uid); }); ...
阅读全文
摘要:/// /// 根据GUID获取16位的唯一字符串 /// /// /// public static string GuidTo16String() { long i = 1; foreach (byte b in Guid.NewGuid().ToByte...
阅读全文
摘要:public ActionResult Create(crm_CompetitiveProducts cp) { using (var db = new BaseDbContext()) { PropertyI...
阅读全文
摘要:@{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml";}@model PagedList @using (Ht...
阅读全文
摘要:var dro = document.getElementById("yid");var index = dro.selectedIndex;dro.options[index].text获取页面选中值 dro.value获取页面点击选中项的文本值var year = $("#yids option...
阅读全文
摘要:1、ASP.NET MVC 3 如何去除默认验证 这个默认验证是在web.config配置文件中设置的 设置为false就行了, 这个是去掉所有model的默认验证,然后你可以在model中加上自己的验证,这样哪些属性需要验证,哪些不需要 就看你自己了示例代码:View Code...
阅读全文
摘要:@Html.TextBoxFor(model => Model.MonthPlan, new Dictionary() { { "readonly", "true" } })
阅读全文