最初我找到了特定颜色的RGB值,例如#ffff00现在我需要将此值从我的计算机传递到另一台计算机
$(document).on("click", "#Rinc", function () {
debugger;
$("[id^='text']").each(function () {
debugger;
if ($(this).css('border-style') == 'solid') {
currentTb = $(this);
var element = $(this);
var rgb = element.css('background-color').replace(/^(rgb|rgba)\(/, '').replace(/\)$/, '').replace(/\s/g, '').split(',');
//var per = rgb[0] / 255 * 100;
if (parseInt(rgb[0]) < 255) {
R = Math.round(parseInt(rgb[0]) + 2.55);
Rper = R / 255 * 100
element.css('background-color', 'rgb(' + R + ',' + rgb[1] + ',' + rgb[2] + ')');
}
}
});
$('#Rtxtbox').val(Math.round(Rper));
});
同样地,我在Jquery中找到了R,G,B值的颜色,并通过位传输将这些值传输到另一台计算机,或者是否还有其他方式