如何在C#中执行相同的操作这是我的代码 [英] how to do same operation in C# this my code
本文介绍了如何在C#中执行相同的操作这是我的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<script type="text/javascript">
$(function () {
//Column index value of price field (Column index start from 1)
var columnIndexValue = 2;
var checked = $('input:checkbox').click(function (e) {
var total = 0;
$("tr:has(:checkbox:checked) td:nth-child(" + columnIndexValue + ")").each(function () {
total += parseInt($(this).text());
});
$('#txt').val(total.toFixed());
});
});
</script>
推荐答案
(>功能( ){ // 价格字段的列索引值(列索引从1开始) var columnIndexValue = 2 ; var 已选中=
(function () { //Column index value of price field (Column index start from 1) var columnIndexValue = 2; var checked =
(' 功能(e){ var total = 0 ;
('input:checkbox').click(function (e) { var total = 0;
( tr:has(:checkbox:checked)td:nth-child(" + columnIndexValue + )").each( parseInt (
("tr:has(:checkbox:checked) td:nth-child(" + columnIndexValue + ")").each(function () { total += parseInt(
这篇关于如何在C#中执行相同的操作这是我的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文