久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

TypeError:無法讀取 null 的屬性“單擊"

TypeError: Cannot read property #39;click#39; of null(TypeError:無法讀取 null 的屬性“單擊)
本文介紹了TypeError:無法讀取 null 的屬性“單擊"的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我一直在使用這些代碼在 Twitter 上大量關注/取消關注/收藏/取消收藏;

I have been mass following / unfollowing / favoriting / unfavoriting on twitter with these codes ;

$('button.follow-button').click();
$('button.ProfileTweet-actionButtonUndo').click();
$('a.favorite').click();

我在網上找到了一些不工作的代碼并嘗試修復,所以它們現在幾乎可以工作了.唯一的事情就是去谷歌瀏覽器上的頁面,按 f12 ,打開控制臺并運行命令.

I found some not-working codes online and tried to fix, so they are nearly working now. The only thing is to go to the page on google chrome, press f12 , open console and run the command.

所以現在,我想在 Vine 中使用相同的系統.谷歌瀏覽器有一個擴展來使用 vine ( https://client.vineclient.com/ ) 和我正在嘗試使用它,因為原始網頁( vine.co )甚至沒有用.

So now, I wanted to use the same system in Vine. There"s an extension for google chrome to use vine ( https://client.vineclient.com/ ) and I am trying to use it because original webpage ( vine.co ) is not even useful.

twitter 和this 的唯一區別是,在 vine 客戶端的 ^followers^ 部分中,頁面中會出現一個彈出窗口.而且我不知道它是否檢測到按鈕.

The only difference between twitter and this, is that, in vine client for ^followers^ section, an pop-up comes in the page. And I don!t know if it detects the buttons.

所以,我試圖從原始頁面點擊的按鈕的代碼,(我使用開發人員工具/元素獲取它)

So , the code of the button I am trying to click from original page , ( I took it using developer tools / elements )

<div class="user">
<img alt="Tu??e Nur TEK?N" class="avatar" src="http://v.cdn.vine.co/r/avatars/3C2E4F40F11066473630650847232_pic-r-1397241239141e51579937f.jpg.jpg?versionId=ttIz4CExCjW_4TEnxYbnehPPpXRyzMco">
<div class="wrapper">
<a class="username" 
>
Tu??e Nur TEK?N
</a>
</div>
<a class="button follow" data-id="1066473613911363584">
<i class="icon">
</i>
</a>
</div>

要點擊的東西在這里:

當我手動點擊時,它會變成這樣:

When I manually click, it changes into this :

<a class="button unfollow" data-id="1066473613911363584"><i class="icon"></i></a>

以及我用來嘗試點擊的命令

And the command I use to try to click

$(".a.follow").click();

我得到的錯誤,

TypeError: Cannot read property 'click' of null

我該如何解決這個問題?順便說一句,在這些代碼中,我實際上找不到任何 ^button^ 代碼..謝謝!

How can I fix that? By the way, in these codes, I couldn"t find actually any ^button^ codes.. Thanks!

更新

  1. http://prntscr.com/3pmo2i
  2. http://prntscr.com/3pmoyk
  3. http://prntscr.com/3pmpym

推薦答案

我遇到了這個問題,當我從其他地方(例如 Selenium)在網頁上運行 javascript 同時使用開發者工具時.嘗試關閉開發者工具并運行腳本.

I had encountered this problem, when I run javascript on the webpage from elsewhere (eg. Selenium) while simultaneously using Developer Tools. Try closing Developer Tools and run the script.

這篇關于TypeError:無法讀取 null 的屬性“單擊"的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to fix BrowserWindow is not a constructor error when creating child window in Electron renderer process(在 Electron 渲染器進程中創建子窗口時如何修復 BrowserWindow 不是構造函數錯誤) - IT屋-程序員軟件開發技術
mainWindow.loadURL(quot;https://localhost:3000/quot;) show white screen on Electron app(mainWindow.loadURL(https://localhost:3000/) 在 Electron 應用程序上顯示白屏)
Electron webContents executeJavaScript : Cannot execute script on second on loadURL(Electron webContents executeJavaScript:無法在第二個 loadURL 上執行腳本)
how to use electron browser window inside components in angular-cli?(如何在angular-cli的組件內使用電子瀏覽器窗口?)
ElectronJS - sharing redux store between windows?(ElectronJS - 在 Windows 之間共享 redux 存儲?)
How to access camera/webcamera inside electron app?(如何在電子應用程序中訪問相機/網絡攝像頭?)
主站蜘蛛池模板: 久久99精品视频 | 麻豆国产精品777777在线 | 99国产视频 | 9999国产精品欧美久久久久久 | 日韩中文一区 | 欧洲一区二区三区 | 国产欧美久久一区二区三区 | 龙珠z国语版在线观看 | 在线视频中文字幕 | 91在线免费观看网站 | 国产精品日韩一区二区 | 国产第一页在线观看 | 亚洲巨乳自拍在线视频 | 最新毛片网站 | 欧美理论在线观看 | 国产在线视频一区二区 | 久久久久久国产精品免费免费狐狸 | 亚洲自拍偷拍视频 | 精国产品一区二区三区四季综 | 亚洲国产成人精品久久久国产成人一区 | 久久一区二区三区四区 | 婷婷综合色 | 日韩视频精品在线 | 成人久久久 | 免费观看的av | 手机在线一区二区三区 | 中文字幕 在线观看 | 日韩一区二区三区精品 | 国产精品一区二区久久 | 精品国产不卡一区二区三区 | 精品久久国产 | 国产99视频精品免视看9 | 亚洲精品视频免费 | 色接久久 | 久久免费精品 | 中文字幕视频在线看5 | 欧美一级黄视频 | 日韩人体视频 | 波多野结衣中文字幕一区二区三区 | 天堂久久网| 欧洲一区二区三区 |