Repeater中同行兩個值的運算

2021-06-27 22:27:39 字數 509 閱讀 7987

//當前行的jquery處理方式

$("input[type=text][tag=actualcount]").live("keyup", function () {

var self = $(this);

var val = self.val();

var index = self.attr('index');

var price = $("span[tag=systematicprice][index=" + index + "]").text();

var ctrl = $("input[type=text][tag=discountprice][index=" + index + "]");

ctrl.val(parseint(val) * parsefloat(price));

通過以上方式 可以運算 repeater中同行兩個值的運算

這半個月學習的是一種解決問題的思路

從 完成任務 、 快速完成任務 、 有思路的完成任務中總結下來, 加油

處理兩個檔案中的相同行和不同行

利用現存兩個檔案,生成乙個新的檔案 1.如何取出兩個檔案的並集 重複的行只保留乙份 2.如何取出兩個檔案的交集 只留下同時存在於兩個檔案中的檔案 3.如何刪除交集,留下其他的行?1.cat file1 file2 sort uniq 2.cat file1 file2 sort uniq d 3.c...

兩個Repeater巢狀使用

在c 中有時存在著兩個巢狀迴圈的存在,此時可以使用兩個repeater進行迴圈獲取到。例如 aspx頁面中 面部護膚熱銷排行榜 很明顯的是,此時在頁面布局中是存在著兩個repeater存在的。aspx.cs頁面中 region 初始化頁面 public void initdata string us...

Repeater隔行變色,兩個方式

html view plain copy print?table tr td 使用者編號 td tr asp repeaterid rptuser runat server itemtemplate trstyle background color container.itemindex 2 0 r...