• 文本框仅可接收decimal

    文本框html如下: div label class ="label" 价格: / label input id ="TextPrice" type ="text" name ="Price" // div Source Code jQuery: $("#TextPrice").on("input", function (evt) { var self = $( this ); self.val(self.val().replace( /[^0-9\.]/g, '' )); i...

    2018-06-22 06:10:18

  • 高亮表格行或列

    今天学习jQuery,练习一下对表格进行列或行高亮显示。 我们对下面这个表格来进行。代码是写在ASP.NET MVC程序上Razor语法。 这个需要符合某一条件:只要控制器列的文本为:Railway。 首先添加样式: .highTransport { background-color : #0915f3 !important ; color :...

    2018-06-22 06:10:17

  • 实现表格自动计算

    先来看看实时操作动画演示: 每一行进行小计,数量 X 单价。而总计则是把表格中小计列所有行进行相加。 Html code: table id ="Order" tr th 费用名目 / th th 数量 / th th 单价 / th th 小计 / th / tr tr class ="trData" td ItemA / td td input type ="text" clas...

    2018-06-22 06:10:16

  • 上机练习2 生成计算机ID

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyID { class Computer { private string type; public string Type { get { return type; } set { type = value; } } private stri...

    2018-06-22 06:10:16

  • ABP入门系列(14)——应用BootstrapTable表格插件

    ...

    2018-06-22 06:10:13

  • 实现一个超简单的开关

    在html拉一个button: input id ="Button1" type ="button" value ="关" / 用户点击铵钮时,铵钮的文字在"关"与开之间切换: $("#Button1").on('click', function () { var self = $( this ); if (self.val() == "关" ) self.val( "开" ); else self.val( "关" ); });...

    2018-06-22 06:10:14

  • SSO - 开篇引例

    进公司以来, 所做的产品中, 下面的子系统就没有少于10个的, 其中有的是.net做的, 有的是java做的, 还有安卓端, ios端. 那么这么多子系统, 我可能需要访问其中的多个(同一平台), 我是否需要登录多次来操作呢? 这样是不是太不方便了. 在我们登录qq之后, 进入qq邮箱, 也并...

    2018-06-22 06:10:11

  • jQuery获取Table某列的值

    在写此篇博文时,发现在以前曾写过《获取DataTable选择第一行某一列值》http://www.cnblogs.com/insus/p/5434062.html 。 但是与此篇所说的完全不一样。这篇Insus.NET需要的是jQuery去获取html table的某一行某一列的数据。 如下表: Html code: table tr th style ="w...

    2018-06-22 06:10:11

  • 学习ASP.NET MVC(十一)——分页

    在这一篇文章中,我们将学习如何在MVC页面中实现分页的方法。分页功能是一个非常实用,常用的功能,当数据量过多的时候,必然要使用分页。在今天这篇文章中,我们学习如果在MVC页面中使用PagedList.Mvc包来实现分页功能。 1) 安装PagedList.Mvc 首先,我们需要安装分页...

    2018-06-22 06:10:10

  • 点击表格获取表格行或列索引

    参考ASP.NET MVC的视图: 此段html将产生一个表格table。 现在我们需要实现,点击表格时,获取点击行的索引或是所在行的列索引。 行索引: $('table tr').click( function () { var idx = $( this ).index(); alert(idx); }); Source Code 列索引: $("table tr td").o...

    2018-06-22 06:10:10

2