我得到了这段代码,需要使用jquery-2.1.1(连接列表)
进行排序 class="sensorContainer"
必须在class="groupContainerBody"
处理img class="img_control_move"
class="groupContainer"
处理div class="outerContainer"
img class="img_control_move"
之内的所有div中进行排序。<div class="outerContainer">
<div class="groupContainer ui-state-default">
<div class="groupContainerHead">
<div id="ungrouped" class="groupName">
<input id="ungrouped" class="chartNameInput" type="text" autocomplete="on" value="ungrouped" title="ungrouped">
</div>
<div class="groupContainerMove">
<img class="img_control_move" src="catalog/view/theme/default/image/control_move.png" width="16" height="16">
</div>
<div class="groupContainerDel">
<img class="img_control_del" src="catalog/view/theme/default/image/control_del.png" width="16" height="16">
</div>
</div>
<div id="groupContainerBody1" class="groupContainerBody">
<div id="sensor_28ff588762140363" class="sensorContainer ui-state-default">
<div class="sensorName">
<input id="sensor_28ff588762140363" class="sensorNameInput" type="text" autocomplete="on" value="sensor_28ff588762140363" title="sensor_28ff588762140363">
</div>
<div class="sensorMove">
<img class="img_control_move" src="catalog/view/theme/default/image/control_move.png" width="16" height="16">
</div>
</div><!-- sensorContainer -->
<div id="sensor_28ffd55562140342" class="sensorContainer ui-state-default">
<div class="sensorName">
<input id="sensor_28ffd55562140342" class="sensorNameInput" type="text" autocomplete="on" value="sensor_28ffd55562140342" title="sensor_28ffd55562140342">
</div>
<div class="sensorMove">
<img class="img_control_move" src="catalog/view/theme/default/image/control_move.png" width="16" height="16">
</div>
</div><!-- sensorContainer -->
<div id="sensor_28ffed57621403ff" class="sensorContainer ui-state-default">
<div class="sensorName">
<input id="sensor_28ffed57621403ff" class="sensorNameInput" type="text" autocomplete="on" value="sensor_28ffed57621403ff" title="sensor_28ffed57621403ff">
</div>
<div class="sensorMove">
<img class="img_control_move" src="catalog/view/theme/default/image/control_move.png" width="16" height="16">
</div>
</div><!-- sensorContainer -->
</div><!-- groupContainerBody -->
</div><!-- groupContainer -->
</div>
// Conditional polyfills
$conditional_scripts = array(
'html5shiv' => '//cdn.jsdelivr.net/html5shiv/3.7.2/html5shiv.js',
'html5shiv-printshiv' => '//cdn.jsdelivr.net/html5shiv/3.7.2/html5shiv-printshiv.js',
'respond' => '//cdn.jsdelivr.net/respond/1.4.2/respond.min.js'
);
foreach ( $conditional_scripts as $handle => $src ) {
wp_enqueue_script( $handle, $src, array(), '', false );
}
add_filter( 'script_loader_tag', function( $tag, $handle ) use ( $conditional_scripts ) {
if ( array_key_exists( $handle, $conditional_scripts ) ) {
$tag = "<!--[if lt IE 9]>$tag<![endif]-->";
}
return $tag;
}, 10, 2 );
<a href="user.php?user={$user['id']}">{$user['username']}</a>
有人可以帮我吗?