摘要: 摘自:http://blog.csdn.net/kkkkkxiaofei/article/details/8663377winform中执行JS代码使用 webBrowser1.Document.InvokeScript("方法名称");在JS中执行winform的方法需要引用 using System.Security.Permissions并且在在 命名空间中添加:[PermissionSet(SecurityAction.Demand, Name = "FullTrust")][System.Runtime.InteropServices.ComV 阅读全文
posted @ 2013-04-24 15:19 nygfcn 阅读(741) 评论(0) 推荐(0)
摘要: 摘自:http://blog.csdn.net/kkkkkxiaofei/article/details/8645856从百度API官网的DEMO上贴下来的代码另存为html后再在IE中打开,汉字显示为乱码,解决途径:1.当你保存txt文件时采用默认编码格式(ANSI),将代码中将编码格式改为charset="gb2312";若还不能显示,则查看是不你的浏览器的问题,在internet工具,选项里找到“禁用脚本提示”,看是否打钩了。2.保存txt文件时选择编码格式为utf-8,则上面的代码就能正常显示(推荐此编码,不解释)。 阅读全文
posted @ 2013-04-24 10:38 nygfcn 阅读(340) 评论(0) 推荐(0)