函数未定义
function is undefined
此链接为示例
<script type="text/javascript" language="javascript">
$.blockUI({ overlayCSS: { backgroundColor: 'orange'} , message: '<img src="icon/wait.gif" /><div style=''font-family:Tahoma;font-size:large''> ...???? ??? ???? ??? ????</div>' });
function UrlExists(url)
{
var http = new XMLHttpRequest();
http.open('HEAD', url, false);
http.send();
return http.status!=404;
}
function test()
{
var certification = "";
var address;
var idCompany="821229021";
var Empty = true;
for (var i = 0; i < 10; i++)
{
idCompany =idCompany + i.toString();
idCompany=idCompany + ".png";
address="Image/CertificationCompany/"+idCompany;
if (UrlExists(address))
{
//certification += "<img style='margin:5px;padding:5px;cursor: pointer; border: 1px solid GrayText;' width='103px' height='80px;' src='Image/CertificationCompany/" + idCompany + "' />";
certification +="<a href='Image/CertificationCompany/" + idCompany + "' rel='prettyPhotoCertification[pp_gal]' title=' ?????? ????????? ???? "+document.title+"'><img style='margin:5px;padding:5px;cursor: pointer; border: 1px solid GrayText;' width='103px' height='80px;' src='Image/CertificationCompany/" + idCompany + "' alt='????????? ??' /></a>";
Empty = false;
}
idCompany="821229021";
//$.unblockUI();
}
if(Empty ){
certification = "updating<br /><img src='icon/Updated.png' />";
}
$("#contentCertification").html(certification);
}
$.unblockUI();
</script>
HTML <input type="button" value="click me" onclick="test();"/>
2)在IE中,$.blockUI()
不工作,似乎浏览器已挂起。
这个链接是一个示例
<script type="text/jscript" language="javascript">
应该 <script type="text/javascript">
如何加载jQuery和插件?确保你不使用自关闭脚本标签,在IE上不起作用。
<script src="js/blockui.js" /> <!-- WRONG -->
<script src="js/blockui.js></script> <!-- CORRECT -->
相关文章:
- Jquery未定义函数正在停止其他操作
- 在不破坏未定义函数的情况下,对多个视图使用单个js文件
- Uncaught ReferenceError:尝试在Android网络视图中访问时未定义函数
- jQuery文件上传和验证未定义函数
- 引用错误:未定义函数-Firefox
- res.render中出错,未定义函数
- 神秘的未定义函数
- 尝试使用函数和Ajax修改值时未定义函数
- 引用错误:未定义函数
- ReferenceError:未定义函数
- 在 Angular JS 中使用 ng-include 的未定义函数
- 未捕获的引用错误:未定义函数
- j查询工具提示引发错误:未定义函数
- 未捕获的引用错误: 未定义单击世界 -- 未定义函数
- JS:引用错误:未定义函数
- 茉莉花未定义函数
- Javascript 错误:未捕获的引用错误:未定义 [函数]
- 未定义函数
- 尽管 js 文件引用在标头中,但未定义函数
- Javascript 未定义函数错误