返回列表 上一主題 發帖

請問 GOODINFO已經可以抓資料,但該怎麼設定為"年"長度的資料

請問 GOODINFO已經可以抓資料,但該怎麼設定為"年"長度的資料

本帖最後由 vavashop 於 2016-9-6 12:29 編輯

大大們
請問一下
這網站已經可以抓取資料
可是我遇到一個問題
他預設是三個月
我想抓一年
這樣該怎麼去修程式碼呢? GOODINFO籌碼範本.zip (16.76 KB)

2016-9-6 下午 12-22-35.png (139.22 KB)

2016-9-6 下午 12-22-35.png

回復 1# vavashop
  1.   With .document
  2.         'Google Chrome 中 檢查元素的內容,得知 [顯示範圍]的 id="selMarginPeriod"
  3.         ''<select id="selMarginPeriod" onchange=" txtMarginDetailLoading.style.display=''; selMarginPeriod.style.cursor='wait'; document.body.style.cursor='wait'; setTimeout(function(){     var result = ExecuteAsp('ShowBearishChart.asp?STOCK_ID=2303&amp;CHT_CAT=DATE&amp;STEP=DATA&amp;PERIOD='+encodeURIComponent(selMarginPeriod.value),'');     if (result['result']) { divMarginDetailData.innerHTML = result['responseText']; }      document.body.style.cursor='default';     RepaintAD();     googletag.pubads().refresh(); },100);"><option value="90" selected="">三個月</option><option value="180">六個月</option><option value="365">一年</option></select>

  4.           With .getElementByid("selMarginPeriod")
  5.                 .Value = "365"
  6.                  .fireEvent ("onchange")
  7.             End With
複製代碼
感恩的心......(在麻辣家族討論區.用心學習會有進步的)
但資源無限,後援有限,  一天1元的贊助,人人有能力.

TOP

        靜思自在 : 改變自己是自救,影響別人是救人。
返回列表 上一主題