Home  >  Article  >  Backend Development  >  监听网页中某个文件的加载状态

监听网页中某个文件的加载状态

WBOY
WBOYOriginal
2016-06-06 20:23:301362browse

由于安卓微信不支持html5音频的加载!用PHP能否监听到网页中某个文件的加载状态,或者用其他的办法监听!

回复内容:

由于安卓微信不支持html5音频的加载!用PHP能否监听到网页中某个文件的加载状态,或者用其他的办法监听!

你想监听什么类型的文件的加载

建议你参考lazyload.js,在Jquery里你可以这样写:

<code>$('#img1').onload(function(){
// 要执行的操作
});</code>

你可以试试

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn