如何在HTML标记中使用onerror = src =使用此指令

时间:2018-07-18 01:29:48

标签: html

早上好

由于HTML import os tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates') # ... app = Flask('myapp', template_folder=tmpl_dir) onerror=src=img标签中的src错误,发生错误时,我想将Cookie与video一起使用。

我想使用audio而不是this.document.cookie显示cookie,但是document.cookie使用它来显示以下错误。

告诉我如何在onerror=srcthisimg标记中使用video而不使用audio标记!

script

该代码为index.html

Error message

Uncaught TypeError: Can not read property 'cookie' of undefined

     at HTMLImageElement.onerror (go.html: 1)

0 个答案:

没有答案