Cannot set property 'innerHTML' of null

Victor_python發表於2019-01-25

mainfest.json

"content_scripts": [
		{
		  "js": ["js/content_script.js"],
		  "matches": [
			"http://mp.weixin.qq.com/*",
			"https://mp.weixin.qq.com/*"
		  ],
		  "run_at": "document_start"
		}
	  ],

問題截圖

解決辦法

"content_scripts": [
		{
		  "js": ["js/content_script.js"],
		  "matches": [
			"http://mp.weixin.qq.com/*",
			"https://mp.weixin.qq.com/*"
		  ],
		  "run_at": "document_end"
		}
	  ],

在這裡插入圖片描述

相關文章