<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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">
<head runat="server">
<title><%=Titlep%></title>
<meta content="<%=Descriptionp%>" name="description" />
<meta content="<%=Keywordsp %>" name="keywords" />
<link href="stylesheet/StyleSheet.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.6.js"></script>
</head>
<body>
<form id="form1" runat="server">
<script type="text/javascript">
$(function(){
$.get("js/loadImg.asp",{rnd:new Date().getTime()},function(msg){alert(111);},"json");
});
</script>
</form>
</body>
</html>浏览器老提示报错 对象不支持此属性或方法,为何???
var result = $("#searchTemp").tmpl(data);
$("#searchResult").empty().append(result);
});
或者
$.get("js/loadImg.asp",{rnd:new Date().getTime()},function(msg){alert(111);});
没有指定类型时,默认是Html/Xml
$.get("js/LoadImg.asp",id=id,function(msg){
alert(msg);
});
2、语法错误,参考jquery官网的语法介绍