
好的,所以我试图安装一个新的jdk/jre,突然我的日食无法打开.我已经尝试卸载旧的java形式并重新安装我需要的java,它拒绝打开.我用谷歌搜索了这个并在网上尝试了十几个答案,但它们都不适合我.这非常令人沮丧.想法?
我有一个动态生成的表,我试图更改其中某些行的背景颜色。有时有些行具有 rowspans,我无法弄清楚如何获取与一个“行”相对应的所有行。我已经用谷歌搜索了我的大脑,发现这个 jsfiddle 非常接近我需要的(在逻辑意义上)
http://jsfiddle.net/DamianS1987/G2trb/
基本上我有这样的事情:

我希望能够在这样的时间突出显示完整的行:

但我可以在 rowspan 行上实现的唯一突出显示是:

这是我的代码(与 jsfiddle 不同,但逻辑基本相同)
CSS:
.highlightedClass{
background-color: #AEAF93;
}
Run Code Online (Sandbox Code Playgroud)
HTML:
<table border="1" class="altTable">
<th>ID</th>
<th>NAME</th>
<th>Miles</th>
<th>WORK</th>
<tbody>
<tr>
<td class="td_id">999B</td>
<td class="td_name ">John</td>
<td class="td_cumMiles">702.4</td>
<td class="td_workEvent">Y</td>
</tr><tr>
<td class="td_id" rowspan="2">111A</td>
<td class="td_name">Tom</td>
<td class="td_cumMiles">446.5</td>
<td class="td_workEvent">Y</td>
</tr><tr>
<td class="td_name">Becky</td>
<td class="td_cumMiles">446.5</td>
<td class="td_workEvent">A</td>
</tr>
</tbody>
Run Code Online (Sandbox Code Playgroud)
爪哇脚本:
for(var j=0; j < inspection.length; j++){
var $tr = $('<tr></tr>');
var $td_id = $('<td></td>').addClass('td_id').html(inspection.id);
$tr.append($td_id);
$table.append($tr);
$.each(inspection[i], function(index, value){
var $td_name, $td_miles,$td_workEvent;
if(index …Run Code Online (Sandbox Code Playgroud) 我试图在javascript ajax调用中有一些if语句,我觉得它应该是可能的,也许我的语法错了.我正在尝试创建下面的计划部分:
$.ajax({
type : 'POST',
name : 'Submitting Request',
url : '/breadcrumbs/crumb',
dataType: 'json',
data : {
parameters : paramsObj,
schedule: { paramsObj.isfirst ? firstSched
: paramsObj.issecond ? secondSched
: paramsObj.isthird ? thirdSched
}
},
success : function(){},
error : function(jqXHR, status, error) {}
});
Run Code Online (Sandbox Code Playgroud)
我一直得到"Uncaught SyntaxError:Unexpected token".围绕这个街区,特别是在日程表行:
data : {
parameters : paramsObj,
schedule: { paramsObj.isfirst ? firstSched
: paramsObj.issecond ? secondSched
: paramsObj.isthird ? thirdSched
}
},
Run Code Online (Sandbox Code Playgroud)
特别是对于时间表,这是我正在尝试使用三元运算符:
if( paramsObj.isfirst === true) { schedule = firstSched}
if( …Run Code Online (Sandbox Code Playgroud)