一位同事和我試圖找出一種在VBScript「For/Next」循環內執行等效「continue」語句的方法。 無論我們看什麼,我們發現人們沒有辦法在VBScript中做到這一點,沒有討厭的嵌套,這不是我們的選擇,因爲它是一個相當大的循環。 我們提出這個想法。它會像「繼續(到下一次迭代)」那樣工作嗎?有沒有人有更好的解決方法或改進建議? For i=1 to N
For workaroun
我正在使用next()函數顯示一系列元素。一旦我達到目的,我想去第一個元素。有任何想法嗎? 下面的代碼: //Prev/Next Click
$('.nextSingle').click(function() {
//Get the height of the next element
var thisHeight = $(this).parent().parent().pa
這裏是HTML代碼示例: <div id="current_element">Current element</div>
Many unknown tags...
<div class="target">This is target element</div>
Many other tags...
請注意,目標元素和當前元素可能不相同父下,所以我不能.nextAll找到它(「目標」),對