
C#+Html5
拼了命的追赶
这个作者很懒,什么都没留下…
展开
-
Using a DateTime Picker for ASP.NET MVC 5 with Bootstrap
Create the BundleOpen BundleConfig.cs (located in the App_Start directory). Add the following code:bundles.Add(new ScriptBundle("~/bundles/datetime").Include( "~/Scripts/moment*",翻译 2015-10-22 11:56:05 · 556 阅读 · 0 评论 -
使用js数组拼接json并post到contoller
view:<script type="text/javascript"> var id = 0; var i = 1; var s = ["div1"]; function add() { i++; var id = "div" + i.toString(); s.push(id); var t = '<d原创 2017-07-10 20:45:12 · 913 阅读 · 0 评论 -
bootstrap插件summernote 编辑器 的使用
@{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml";}<script src="~/js/jquery-3.1.1.min.js"></script><script src="~/lib/bootstrap/js/bootstrap.min.js"></script><script src="原创 2017-05-14 16:05:32 · 968 阅读 · 0 评论 -
jQuery清空table表格除首行外的所有数据(ajax+ js实现动态画表及刷新数据)
其中tb是table的id。$(“#tb tr:not(:first)”).html(“”); 或者是 $(“#tb tr:not(:first)”).empty(“”);jQuery清空table表格除首行外的所有数据实例: ajax+ js实现动态画表及刷新数据<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestScre原创 2017-04-22 15:39:04 · 11390 阅读 · 0 评论 -
调用 Ajax实例
html页面转载 2016-08-23 23:46:16 · 315 阅读 · 0 评论 -
DataTable 转换成 Json
(1) using System.Text; public string DataTableToJson(DataTable table) { var JsonString = new StringBuilder(); if (table.Rows.Count > 0) { JsonString.Append原创 2017-04-22 11:05:45 · 447 阅读 · 0 评论 -
innerHTML 改变 HTML 内容,element.src.match("bulbon")匹配
function changeImage(){element=document.getElementById('myimage')//match() 方法可在字符串内检索指定的值,或找到一个或多个正则表达式的匹配。//x=document.getElementById("demo") //查找元素//x.innerHTML="Hello JavaScript"; //改变内容if转载 2016-12-05 15:17:56 · 3639 阅读 · 1 评论 -
js给select赋值
方法一 var area=document.getElementByIdx(“area”); var a=new Option(); a.value=”xxx”; a.text=”yyy”; area.options.add(a);方法二 var selectid=document.getElementById(“selectid”); selectid[0]=new Opti翻译 2016-08-22 15:48:16 · 10004 阅读 · 1 评论 -
Struggling trying to get cookie out of response with HttpClient in .net 4.5
public static async Task Login(string UserName,string Password) { var model = new LoginModel (); try { var url = string.Format("{0}&requestType={1}&requestAction={2}&Email={3}&Pas原创 2016-02-18 16:59:00 · 685 阅读 · 0 评论 -
How to set custom colors in amCharts Column Chart
htmlcss#chartdiv {width : 100%;height : 500px;font-size : 11px;} JavaScriptvar chart = AmCharts.makeChart("chartdiv", { "theme": "none", "type": "seri转载 2015-12-21 10:18:40 · 518 阅读 · 0 评论 -
用js 动态的更改类名为 ".correctControl" div 的 背景色
$(".correctControl").click(function () { $(".correctControl").each(function () { $(this).parent().css("background", ""); }) $(this).parent().css("background", "原创 2015-11-26 10:22:34 · 502 阅读 · 0 评论 -
html+div相对屏幕居中
第一点要求:position:absolute 第二点要求:left:50%;top:50% 第三点要求:margin-left:-175px [也就是-(350/2)] margin-top:-150px [也就是-(300/2)] 第一点要求:position:absolute 第二点要求原创 2015-12-01 14:24:50 · 3759 阅读 · 0 评论 -
Javascript Charts
Javascript var chart = AmCharts.makeChart( "chartdiv", { "type": "serial", "theme": "light", "dataProvider": [ { "country": "USA", "visits": 2025 }, { "country": "China"翻译 2015-12-18 12:23:00 · 396 阅读 · 0 评论 -
javascript div动态大小改变
div id="divtest" style="height: 100px; background: #f00;">div>input type="button" onclick="disappear();" value="消失" /><script type="text/javascript">function disappear(原创 2015-11-30 17:56:12 · 542 阅读 · 0 评论 -
EF6+ MVC Insert or update pattern
//Insert or update pattern//A common pattern for some applications is to either Add an entity as new (resulting in a database insert) or Attach an entity as existing and mark it as //modified (res原创 2015-11-24 11:21:31 · 1155 阅读 · 0 评论 -
图表控件
不管是哪个领域的开发,都有机会用到图表来做统计分析,以更直观的表现形式来代替传统的文字。在以前,图表控件主要有使用程序代码生成的静态图片,或者是使用flash实现的图表控件。在HTML5非常流行的当下,现代浏览器提供越来越强大的功能,涌现出许多优秀的图表控件,它们基于Canvas/SVG技术来绘制图表(低版本IE使用VML技术),不再需要flash等额外的插件,提供丰富的表现形式以及交互方式,而且性转载 2017-06-29 10:35:06 · 958 阅读 · 0 评论