- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的项目做得更好,但我仍在尝试找出一些无法正常工作的地方。例如,我创建了一个按钮“UTG1”,它以绿色过滤矩阵中的特定范围。单击此按钮时,应仅删除不具有绿色背景的值,但碰巧会先删除所有值,然后设置背景。关于这个的任何线索?提前致谢!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>Table Highlighting</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$(function(){
var color = '#33FF36';
$('#button').click(function (){
color='#33FF36';
});
$('#button2').click(function (){
color='#F0FF00';
});
$('#button3').click(function (){
$('#tabla td').each(function() {
$(this).css('background', 'transparent');
});
});
$('#button4').click(function (){
color='#F0FF00';
});
$('td').toggle( function() {
$(this).css('background', color);
},function(){
$(this).css('background', 'transparent');
});
} );
</script>
<style>
table
{
width: 520px;
height: 520px;
border-collapse: collapse;
}
table_botones
{
width: 520px;
height: 50px;
border-collapse: collapse;
}
td
{
width: 40px;
height: 40px;
padding: 0px;
border: 1px solid #666666;
cursor: pointer;
}
</style>
</head>
<body>
<table id="tabla" width="520" border="0">
<tr>
<td width="40" height="40" align="center" bgcolor="#2692F7">AA</td>
<td width="40" height="40" align="center">AKs</td>
<td width="40" height="40" align="center">AQs</td>
<td width="40" height="40" align="center">AJs</td>
<td width="40" height="40" align="center">TAs</td>
<td width="40" height="40" align="center">A9s</td>
<td width="40" height="40" align="center">A8s</td>
<td width="40" height="40" align="center">A7s</td>
<td width="40" height="40" align="center">A6s</td>
<td width="40" height="40" align="center">A5s</td>
<td width="40" height="40" align="center">A4s</td>
<td width="40" height="40" align="center">A3s</td>
<td width="40" height="40" align="center">A2s</td>
</tr>
<tr>
<td width="40" height="40" align="center">AKo</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">KK</td>
<td width="40" height="40" align="center">
KQs</td>
<td width="40" height="40" align="center">KJs</td>
<td width="40" height="40" align="center">KTs</td>
<td width="40" height="40" align="center">K9s</td>
<td width="40" height="40" align="center">K8s</td>
<td width="40" height="40" align="center">K7s</td>
<td width="40" height="40" align="center">K6s</td>
<td width="40" height="40" align="center">K5s</td>
<td width="40" height="40" align="center">K4s</td>
<td width="40" height="40" align="center">K3s</td>
<td width="40" height="40" align="center">K2s</td>
</tr>
<tr>
<td width="40" height="40" align="center">AQo</td>
<td width="40" height="40" align="center">KQo</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">QQ</td>
<td width="40" height="40" align="center">QJs</td>
<td width="40" height="40" align="center">QTs</td>
<td width="40" height="40" align="center">Q9s</td>
<td width="40" height="40" align="center">Q8s</td>
<td width="40" height="40" align="center">Q7s</td>
<td width="40" height="40" align="center">Q6s</td>
<td width="40" height="40" align="center">Q5s</td>
<td width="40" height="40" align="center">Q4s</td>
<td width="40" height="40" align="center">Q3s</td>
<td width="40" height="40" align="center">Q2s</td>
</tr>
<tr>
<td width="40" height="40" align="center">AJo</td>
<td width="40" height="40" align="center">KJo</td>
<td width="40" height="40" align="center">QJo</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">JJ</td>
<td width="40" height="40" align="center">JTs</td>
<td width="40" height="40" align="center">J9s</td>
<td width="40" height="40" align="center">J8s</td>
<td width="40" height="40" align="center">J7s</td>
<td width="40" height="40" align="center">J6s</td>
<td width="40" height="40" align="center">J5s</td>
<td width="40" height="40" align="center">J4s</td>
<td width="40" height="40" align="center">J3s</td>
<td width="40" height="40" align="center">J2s</td>
</tr>
<tr>
<td width="40" height="40" align="center">ATo</td>
<td width="40" height="40" align="center">KTo</td>
<td width="40" height="40" align="center">QTo</td>
<td width="40" height="40" align="center">JTo</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">TT</td>
<td width="40" height="40" align="center">T9s</td>
<td width="40" height="40" align="center">T8s</td>
<td width="40" height="40" align="center">T7s</td>
<td width="40" height="40" align="center">T6s</td>
<td width="40" height="40" align="center">T5s</td>
<td width="40" height="40" align="center">T4s</td>
<td width="40" height="40" align="center">T3s</td>
<td width="40" height="40" align="center">T2s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A9o</td>
<td width="40" height="40" align="center">K9o</td>
<td width="40" height="40" align="center">Q9o</td>
<td width="40" height="40" align="center">J9o</td>
<td width="40" height="40" align="center">T9o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">99</td>
<td width="40" height="40" align="center">98s</td>
<td width="40" height="40" align="center">97s</td>
<td width="40" height="40" align="center">96s</td>
<td width="40" height="40" align="center">95s</td>
<td width="40" height="40" align="center">94s</td>
<td width="40" height="40" align="center">93s</td>
<td width="40" height="40" align="center">92s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A8o</td>
<td width="40" height="40" align="center">K8o</td>
<td width="40" height="40" align="center">Q8o</td>
<td width="40" height="40" align="center">J8o</td>
<td width="40" height="40" align="center">T8o</td>
<td width="40" height="40" align="center">98o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">88</td>
<td width="40" height="40" align="center">87s</td>
<td width="40" height="40" align="center">86s</td>
<td width="40" height="40" align="center">85s</td>
<td width="40" height="40" align="center">84s</td>
<td width="40" height="40" align="center">83s</td>
<td width="40" height="40" align="center">82s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A7o</td>
<td width="40" height="40" align="center">K7o</td>
<td width="40" height="40" align="center">Q7o</td>
<td width="40" height="40" align="center">J7o</td>
<td width="40" height="40" align="center">T7o</td>
<td width="40" height="40" align="center">97o</td>
<td width="40" height="40" align="center">87o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">77</td>
<td width="40" height="40" align="center">76s</td>
<td width="40" height="40" align="center">75s</td>
<td width="40" height="40" align="center">74s</td>
<td width="40" height="40" align="center">73s</td>
<td width="40" height="40" align="center">72s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A6o</td>
<td width="40" height="40" align="center">K6o</td>
<td width="40" height="40" align="center">Q6o</td>
<td width="40" height="40" align="center">J6o</td>
<td width="40" height="40" align="center">T6o</td>
<td width="40" height="40" align="center">96o</td>
<td width="40" height="40" align="center">86o</td>
<td width="40" height="40" align="center">76o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">66</td>
<td width="40" height="40" align="center">65s</td>
<td width="40" height="40" align="center">64s</td>
<td width="40" height="40" align="center">63s</td>
<td width="40" height="40" align="center">62s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A5o</td>
<td width="40" height="40" align="center">K5o</td>
<td width="40" height="40" align="center">Q5o</td>
<td width="40" height="40" align="center">J5o</td>
<td width="40" height="40" align="center">T5o</td>
<td width="40" height="40" align="center">95o</td>
<td width="40" height="40" align="center">85o</td>
<td width="40" height="40" align="center">75o</td>
<td width="40" height="40" align="center">65o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">55</td>
<td width="40" height="40" align="center">54s</td>
<td width="40" height="40" align="center">53s</td>
<td width="40" height="40" align="center">52s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A4o</td>
<td width="40" height="40" align="center">K4o</td>
<td width="40" height="40" align="center">Q4o</td>
<td width="40" height="40" align="center">J4o</td>
<td width="40" height="40" align="center">T4o</td>
<td width="40" height="40" align="center">94o</td>
<td width="40" height="40" align="center">84o</td>
<td width="40" height="40" align="center">74o</td>
<td width="40" height="40" align="center">64o</td>
<td width="40" height="40" align="center">54o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">44</td>
<td width="40" height="40" align="center">43s</td>
<td width="40" height="40" align="center">42s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A3o</td>
<td width="40" height="40" align="center">K3o</td>
<td width="40" height="40" align="center">Q3o</td>
<td width="40" height="40" align="center">J3o</td>
<td width="40" height="40" align="center">T3o</td>
<td width="40" height="40" align="center">93o</td>
<td width="40" height="40" align="center">83o</td>
<td width="40" height="40" align="center">73o</td>
<td width="40" height="40" align="center">63o</td>
<td width="40" height="40" align="center">53o</td>
<td width="40" height="40" align="center">43o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">33</td>
<td width="40" height="40" align="center">32s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A2o</td>
<td width="40" height="40" align="center">K2o</td>
<td width="40" height="40" align="center">Q2o</td>
<td width="40" height="40" align="center">J2o</td>
<td width="40" height="40" align="center">T2o</td>
<td width="40" height="40" align="center">92o</td>
<td width="40" height="40" align="center">82o</td>
<td width="40" height="40" align="center">72o</td>
<td width="40" height="40" align="center">62o</td>
<td width="40" height="40" align="center">52o</td>
<td width="40" height="40" align="center">42o</td>
<td width="40" height="40" align="center">32o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">22</td>
</tr>
</table>
<button id="button" >Raise</button>
<button id="button2" >Call</button>
<button id="ep1" onclick="ep1()">UTG1</button>
<script type="text/javascript">
function ep1()
{
$('#tabla td').each(function() {
$(this).css('background', 'transparent');
});
tabla.rows[0].cells[0].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[1].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[2].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[3].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[4].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[5].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[10].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[11].style.backgroundColor = "#33FF36";
tabla.rows[1].cells[0].style.backgroundColor = "#33FF36";
tabla.rows[1].cells[1].style.backgroundColor = "#33FF36";
tabla.rows[1].cells[2].style.backgroundColor = "#33FF36";
tabla.rows[1].cells[3].style.backgroundColor = "#33FF36";
tabla.rows[2].cells[0].style.backgroundColor = "#33FF36";
tabla.rows[2].cells[2].style.backgroundColor = "#33FF36";
tabla.rows[2].cells[3].style.backgroundColor = "#33FF36";
tabla.rows[3].cells[3].style.backgroundColor = "#33FF36";
ep2();
}
function ep2(){
for (var i = 0 ; i < 13; i++) {
for (var j = 0; j < 13; j++) {
if(tabla.rows[i].cells[j].style.backgroundColor!='#33FF36')
{tabla.rows[i].cells[j].innerText='';}
}
}
}
</script>
</body>
</html>
最佳答案
你做的一切都正确,但
tabla.rows[i].cells[j].style.backgroundColor
在您检查 HEXACODE 时返回一个 rgb 值,因此您需要做的就是与 rgb 值进行比较,如下所述。
if(tabla.rows[i].cells[j].style.backgroundColor!='rgb(51, 255, 54)'){
{tabla.rows[i].cells[j].innerText='';}
}
function ep1()
{
$('#tabla td').each(function() {
$(this).css('background', 'transparent');
});
tabla.rows[0].cells[0].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[1].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[2].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[3].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[4].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[5].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[10].style.backgroundColor = "#33FF36";
tabla.rows[0].cells[11].style.backgroundColor = "#33FF36";
tabla.rows[1].cells[0].style.backgroundColor = "#33FF36";
tabla.rows[1].cells[1].style.backgroundColor = "#33FF36";
tabla.rows[1].cells[2].style.backgroundColor = "#33FF36";
tabla.rows[1].cells[3].style.backgroundColor = "#33FF36";
tabla.rows[2].cells[0].style.backgroundColor = "#33FF36";
tabla.rows[2].cells[2].style.backgroundColor = "#33FF36";
tabla.rows[2].cells[3].style.backgroundColor = "#33FF36";
tabla.rows[3].cells[3].style.backgroundColor = "#33FF36";
ep2();
}
function ep2(){
for (var i = 0 ; i < 13; i++) {
for (var j = 0; j < 13; j++) {
if(tabla.rows[i].cells[j].style.backgroundColor!='rgb(51, 255, 54)')
{tabla.rows[i].cells[j].innerText='';}
}
}
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>Table Highlighting</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$(function(){
var color = '#33FF36';
$('#button').click(function (){
color='#33FF36';
});
$('#button2').click(function (){
color='#F0FF00';
});
$('#button3').click(function (){
$('#tabla td').each(function() {
$(this).css('background', 'transparent');
});
});
$('#button4').click(function (){
color='#F0FF00';
});
$('td').toggle( function() {
$(this).css('background', color);
},function(){
$(this).css('background', 'transparent');
});
} );
</script>
<style>
table
{
width: 520px;
height: 520px;
border-collapse: collapse;
}
table_botones
{
width: 520px;
height: 50px;
border-collapse: collapse;
}
td
{
width: 40px;
height: 40px;
padding: 0px;
border: 1px solid #666666;
cursor: pointer;
}
</style>
</head>
<body>
<table id="tabla" width="520" border="0">
<tr>
<td width="40" height="40" align="center" bgcolor="#2692F7">AA</td>
<td width="40" height="40" align="center">AKs</td>
<td width="40" height="40" align="center">AQs</td>
<td width="40" height="40" align="center">AJs</td>
<td width="40" height="40" align="center">TAs</td>
<td width="40" height="40" align="center">A9s</td>
<td width="40" height="40" align="center">A8s</td>
<td width="40" height="40" align="center">A7s</td>
<td width="40" height="40" align="center">A6s</td>
<td width="40" height="40" align="center">A5s</td>
<td width="40" height="40" align="center">A4s</td>
<td width="40" height="40" align="center">A3s</td>
<td width="40" height="40" align="center">A2s</td>
</tr>
<tr>
<td width="40" height="40" align="center">AKo</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">KK</td>
<td width="40" height="40" align="center">
KQs</td>
<td width="40" height="40" align="center">KJs</td>
<td width="40" height="40" align="center">KTs</td>
<td width="40" height="40" align="center">K9s</td>
<td width="40" height="40" align="center">K8s</td>
<td width="40" height="40" align="center">K7s</td>
<td width="40" height="40" align="center">K6s</td>
<td width="40" height="40" align="center">K5s</td>
<td width="40" height="40" align="center">K4s</td>
<td width="40" height="40" align="center">K3s</td>
<td width="40" height="40" align="center">K2s</td>
</tr>
<tr>
<td width="40" height="40" align="center">AQo</td>
<td width="40" height="40" align="center">KQo</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">QQ</td>
<td width="40" height="40" align="center">QJs</td>
<td width="40" height="40" align="center">QTs</td>
<td width="40" height="40" align="center">Q9s</td>
<td width="40" height="40" align="center">Q8s</td>
<td width="40" height="40" align="center">Q7s</td>
<td width="40" height="40" align="center">Q6s</td>
<td width="40" height="40" align="center">Q5s</td>
<td width="40" height="40" align="center">Q4s</td>
<td width="40" height="40" align="center">Q3s</td>
<td width="40" height="40" align="center">Q2s</td>
</tr>
<tr>
<td width="40" height="40" align="center">AJo</td>
<td width="40" height="40" align="center">KJo</td>
<td width="40" height="40" align="center">QJo</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">JJ</td>
<td width="40" height="40" align="center">JTs</td>
<td width="40" height="40" align="center">J9s</td>
<td width="40" height="40" align="center">J8s</td>
<td width="40" height="40" align="center">J7s</td>
<td width="40" height="40" align="center">J6s</td>
<td width="40" height="40" align="center">J5s</td>
<td width="40" height="40" align="center">J4s</td>
<td width="40" height="40" align="center">J3s</td>
<td width="40" height="40" align="center">J2s</td>
</tr>
<tr>
<td width="40" height="40" align="center">ATo</td>
<td width="40" height="40" align="center">KTo</td>
<td width="40" height="40" align="center">QTo</td>
<td width="40" height="40" align="center">JTo</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">TT</td>
<td width="40" height="40" align="center">T9s</td>
<td width="40" height="40" align="center">T8s</td>
<td width="40" height="40" align="center">T7s</td>
<td width="40" height="40" align="center">T6s</td>
<td width="40" height="40" align="center">T5s</td>
<td width="40" height="40" align="center">T4s</td>
<td width="40" height="40" align="center">T3s</td>
<td width="40" height="40" align="center">T2s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A9o</td>
<td width="40" height="40" align="center">K9o</td>
<td width="40" height="40" align="center">Q9o</td>
<td width="40" height="40" align="center">J9o</td>
<td width="40" height="40" align="center">T9o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">99</td>
<td width="40" height="40" align="center">98s</td>
<td width="40" height="40" align="center">97s</td>
<td width="40" height="40" align="center">96s</td>
<td width="40" height="40" align="center">95s</td>
<td width="40" height="40" align="center">94s</td>
<td width="40" height="40" align="center">93s</td>
<td width="40" height="40" align="center">92s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A8o</td>
<td width="40" height="40" align="center">K8o</td>
<td width="40" height="40" align="center">Q8o</td>
<td width="40" height="40" align="center">J8o</td>
<td width="40" height="40" align="center">T8o</td>
<td width="40" height="40" align="center">98o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">88</td>
<td width="40" height="40" align="center">87s</td>
<td width="40" height="40" align="center">86s</td>
<td width="40" height="40" align="center">85s</td>
<td width="40" height="40" align="center">84s</td>
<td width="40" height="40" align="center">83s</td>
<td width="40" height="40" align="center">82s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A7o</td>
<td width="40" height="40" align="center">K7o</td>
<td width="40" height="40" align="center">Q7o</td>
<td width="40" height="40" align="center">J7o</td>
<td width="40" height="40" align="center">T7o</td>
<td width="40" height="40" align="center">97o</td>
<td width="40" height="40" align="center">87o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">77</td>
<td width="40" height="40" align="center">76s</td>
<td width="40" height="40" align="center">75s</td>
<td width="40" height="40" align="center">74s</td>
<td width="40" height="40" align="center">73s</td>
<td width="40" height="40" align="center">72s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A6o</td>
<td width="40" height="40" align="center">K6o</td>
<td width="40" height="40" align="center">Q6o</td>
<td width="40" height="40" align="center">J6o</td>
<td width="40" height="40" align="center">T6o</td>
<td width="40" height="40" align="center">96o</td>
<td width="40" height="40" align="center">86o</td>
<td width="40" height="40" align="center">76o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">66</td>
<td width="40" height="40" align="center">65s</td>
<td width="40" height="40" align="center">64s</td>
<td width="40" height="40" align="center">63s</td>
<td width="40" height="40" align="center">62s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A5o</td>
<td width="40" height="40" align="center">K5o</td>
<td width="40" height="40" align="center">Q5o</td>
<td width="40" height="40" align="center">J5o</td>
<td width="40" height="40" align="center">T5o</td>
<td width="40" height="40" align="center">95o</td>
<td width="40" height="40" align="center">85o</td>
<td width="40" height="40" align="center">75o</td>
<td width="40" height="40" align="center">65o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">55</td>
<td width="40" height="40" align="center">54s</td>
<td width="40" height="40" align="center">53s</td>
<td width="40" height="40" align="center">52s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A4o</td>
<td width="40" height="40" align="center">K4o</td>
<td width="40" height="40" align="center">Q4o</td>
<td width="40" height="40" align="center">J4o</td>
<td width="40" height="40" align="center">T4o</td>
<td width="40" height="40" align="center">94o</td>
<td width="40" height="40" align="center">84o</td>
<td width="40" height="40" align="center">74o</td>
<td width="40" height="40" align="center">64o</td>
<td width="40" height="40" align="center">54o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">44</td>
<td width="40" height="40" align="center">43s</td>
<td width="40" height="40" align="center">42s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A3o</td>
<td width="40" height="40" align="center">K3o</td>
<td width="40" height="40" align="center">Q3o</td>
<td width="40" height="40" align="center">J3o</td>
<td width="40" height="40" align="center">T3o</td>
<td width="40" height="40" align="center">93o</td>
<td width="40" height="40" align="center">83o</td>
<td width="40" height="40" align="center">73o</td>
<td width="40" height="40" align="center">63o</td>
<td width="40" height="40" align="center">53o</td>
<td width="40" height="40" align="center">43o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">33</td>
<td width="40" height="40" align="center">32s</td>
</tr>
<tr>
<td width="40" height="40" align="center">A2o</td>
<td width="40" height="40" align="center">K2o</td>
<td width="40" height="40" align="center">Q2o</td>
<td width="40" height="40" align="center">J2o</td>
<td width="40" height="40" align="center">T2o</td>
<td width="40" height="40" align="center">92o</td>
<td width="40" height="40" align="center">82o</td>
<td width="40" height="40" align="center">72o</td>
<td width="40" height="40" align="center">62o</td>
<td width="40" height="40" align="center">52o</td>
<td width="40" height="40" align="center">42o</td>
<td width="40" height="40" align="center">32o</td>
<td width="40" height="40" align="center" bgcolor="#2692F7">22</td>
</tr>
</table>
<button id="button" >Raise</button>
<button id="button2" >Call</button>
<button id="ep1" onclick="ep1()">UTG1</button>
<script type="text/javascript">
</script>
</body>
</html>
关于javascript - 函数执行之前,结果不适用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52641342/
我有一个“有趣”的问题,即以两种不同的方式运行 wine 会导致: $> wine --version /Applications/Wine.app/Contents/Resources/bin/wi
我制作了这个网络抓取工具来获取网页中的表格。我使用 puppeteer (不知道 crontab 有问题)、Python 进行清理并处理数据库的输出 但令我惊讶的是,当我执行它时 */50 * * *
JavaScript 是否被调用或执行取决于什么?准确地说,我有两个函数,它们都以相同的方式调用: [self.mapView stringByEvaluatingJavaScriptFromStri
我目前正在使用 python 做一个机器学习项目(这里是初学者,从头开始学习一切)。 只是想知道 statsmodels 的 OLS 和 scikit 的 PooledOlS 使用我拥有的相同面板数据
在使用集成对象模型 (IOM) 后,我可以执行 SAS 代码并将 SAS 数据集读入 .Net/C# 数据集 here . 只是好奇,使用 .Net 作为 SAS 服务器的客户端与使用 Enterpr
有一些直接的 jQuery 在单击时隐藏打开的 div 未显示,但仍将高度添加到导航中以使其看起来好像要掉下来了。 这个脚本工作正常: $(document).ready(funct
这个问题已经有答案了: How do I compare strings in Java? (23 个回答) 已关闭 4 年前。 这里是 Java 新手,我正在使用 NetBeans 尝试一些简单的代
如果我将它切换到 Python 2.x,它执行 10。这是为什么? 训练逻辑回归模型 import keras.backend as
我有两个脚本,它们包含在 HTML 正文中。在第一个脚本中,我初始化一个 JS 对象,该对象在第二个脚本标记中引用。 ... obj.a = 1000; obj.
每当我运行该方法时,我都会收到一个带有数字的错误 以下是我的代码。 public String getAccount() { String s = "Listing the accounts";
我已经用 do~while(true) 创建了我的菜单;但是每次用户输入一个数字时,它不会运行程序,而是再次显示菜单!你怎么看? //我的主要方法 public static void main(St
执行命令后,如何让IPython通知我?我可以使用铃声/警报还是通过弹出窗口获取它?我正在OS X 10.8.5的iTerm上运行Anaconda。 最佳答案 使用最新版本的iTerm,您可以在she
您好,我刚刚使用菜单栏为 Swing 编写了代码。但是问题出现在运行中。我输入: javac Menu.java java Menu 它没有给出任何错误,但 GUI 没有显示。这是我的源代码以供引用:
我觉得这里缺少明显的东西,但是我看不到它写在任何地方。 我使用Authenticode证书对可执行文件进行签名,但是当我开始学习有关它的更多信息时,我对原样的值(value)提出了质疑。 签名的exe
我正在设计一个应用程序,它使用 DataTables 中的预定义库来创建数据表。我想对数据表执行删除操作,为此应在按钮单击事件上执行 java 脚本。 $(document).ready(functi
我是 Haskell 新手,如果有人愿意帮助我,我会很高兴!我试图让这个程序与 do while 循环一起工作。 第二个 getLine 命令的结果被放入变量 goGlenn 中,如果 goGlenn
我有一个用 swing 实现迷你游戏的程序,在主类中我有一个循环,用于监听游戏 map 中的 boolean 值。使用 while 实现的循环不会执行一条指令,如果它是唯一的一条指令,我不知道为什么。
我正在尝试开发一个连接到 Oracle 数据库并执行函数的 Java 应用程序。如果我在 Eclipse 中运行该应用程序,它可以工作,但是当我尝试在 Windows 命令提示符中运行 .jar 时,
我正在阅读有关 Java 中的 Future 和 javascript 中的 Promises 的内容。下面是我作为示例编写的代码。我的问题是分配给 future 的任务什么时候开始执行? 当如下行创
我有一个常见的情况,您有两个变量(xSpeed 和 ySpeed),当它们低于 minSpeed 时,我想将它们独立设置为零,并在它们都为零时退出。 最有效的方法是什么?目前我有两种方法(方法2更干净
我是一名优秀的程序员,十分优秀!