JS调用问题! 你可以通过ajax来实现,网上搜下 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 或者你在某个页面用document.write的方式输出,然后在html页面里用<script src="xx.aspx"></script>这样的方式调用,不过这么做的话要注意需要转义的字符 可以给点具体的代码提示吗我看过书上的AJAX类似的例子,可是做起来没效果 <script src="xx.aspx"> </script>实在不行你就用这个模式吧首先你服务器必须支持NETxx.aspx在这个页面你最后用document.write输出比如response.write("document.write('nihao')") chinmo我按照你的方法这样试了一下,没有结果输出,是哪里有什么问题吗?这是html源代码<!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> <title>无标题页</title></head><body>here:<script type="text/javascript" src=“test2.aspx”></script></body></html>这是aspx.cs代码public partial class test2 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { Response.Write("document.write('nihao')"); }} public partial class test2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Response.Write("document.write('nihao')"); } } 这里有问题啊Response.Write("document.write('nihao')");response.end();这样试一下 为什么页面一个点击事件在页面第一次加载完成后要点两下执行啊? jsp网页中能用script吗? 求FireFox下iframe防跳出代码 addEventListener什么地方能用的到? onmouseover vml层次的问题 小弟询问一个js语法问题 我的一个图片起到submit的作用,我在点击图片的时候,不希望出现虚线框 新手,各位高手帮忙呀!急,急,急!!!!!!! js获取焦点所在的空间 JS如何获取MF浏览其中li里面的a标签的连接 怎样在客户端存储数据减少对SERVER的访问
我看过书上的AJAX类似的例子,可是做起来没效果
这是html源代码
<!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>
<title>无标题页</title>
</head>
<body>
here:<script type="text/javascript" src=“test2.aspx”></script>
</body>
</html>
这是aspx.cs代码
public partial class test2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("document.write('nihao')");
}
}
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("document.write('nihao')");
}
}
这里有问题啊
Response.Write("document.write('nihao')");
response.end();
这样试一下