摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><title></title><meta http-equiv="Conte 阅读全文
摘要:
一般现代浏览器通过侦听事件获得脚本加载完成时的状态 varscript=document.createElement('script'); script.type='text/javascript'; //Firefox,Chrome script.onload=function(){ alert('scriptloaded!'); }; script.src='http://code.jquery.com/jquery-1.4.2.min.js'; document.getElementsByTagName('head& 阅读全文