winfrom里面向webBrowser里面写入html源码webBrowser1.Document.Write(html)写入到webBrowser里面的调用的js文件无法运行...
有谁碰到过代码如下:webBrowser1.Document.Write(@"
<html>
<head>
<title>标题</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.6.1.min.js'></script>
<script type='text/javascript'>
$(function() {
$('#ac').click(function() {
alert('hello');
});
})
</script>
</head>
<body>
<input type='button' id='ac' value='提交' />
</body>
</html>
");
有谁碰到过代码如下:webBrowser1.Document.Write(@"
<html>
<head>
<title>标题</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.6.1.min.js'></script>
<script type='text/javascript'>
$(function() {
$('#ac').click(function() {
alert('hello');
});
})
</script>
</head>
<body>
<input type='button' id='ac' value='提交' />
</body>
</html>
");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货