小编Die*_*goS的帖子

使用Internet Explorer 11和ASP .NET的JQuery异常

当我浏览ASP .NET站点时,我在使用Internet Explorer时遇到以下JQuery异常.此外,我正在使用Telerik Controls套件用于ASP .NET和Visual Studio 2012.

在此输入图像描述

如果我检查ScriptResource.axd中的行号?d = ...(Telerik的文件):

/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */

a.querySelectorAll("*,:x"), //Line 10673

s.call(a,"[s!='']:x"), //Line 10898
Run Code Online (Sandbox Code Playgroud)

在我的jquery-2.1.0.min.js中:

/*! jQuery v2.1.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */

a.querySelectorAll("*,:x") //Line 10357

q.call(a,"[s!='']:x") //Line 10571
Run Code Online (Sandbox Code Playgroud)

在这两个文件中,我在相同的两个句子中得到一个例外.这些异常不会导致外部行为,但我不喜欢在Visual Studio中看到它们,因为可能存在某些错误的信号.

注意:如果我删除Telerik的JQuery或标准JQuery错误仍然存​​在.即使我将Telerik的JQuery设置为使用标准的JQuery仍然存在错误.此外,控制台中没有错误.

发生了什么?

asp.net jquery internet-explorer telerik

8
推荐指数
1
解决办法
1587
查看次数

无法在Visual Studio 2012中显示.svg文件(IIS Express)

我试图使用Visual Studio 2012,IIS Express v8.0ASP .NET Web窗体在我的Web应用程序中显示.svg文件.

我已经尝试过的事情:

  1. 将.svg扩展名添加到web.config
<staticContent>
  <remove fileExtension=".svg" />
  <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
</staticContent>
Run Code Online (Sandbox Code Playgroud)
  1. 将.svg扩展名添加到C:\ Users\UserName\Documents\IISExpress\config\applicationhost.config
<staticContent lockAttributes="isDocFooterFileName">
  ...
  <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
  ...
Run Code Online (Sandbox Code Playgroud)
  1. 将图像的URL复制到浏览器,它显示正常.

在此输入图像描述 4.在IIS下发布站点,它显示正常.此外,我们有一个使用Visual Studio 2013的开发人员,它使用IIS Express v8.5显示正常.

我添加.svg作为图标,使用一个span具有文件的url作为背景的类的元素,所以我不能使用这个解决方案:VS2012中的SVG文件

这是添加到span的类的样式:

background: transparent url(images/svg/reports.svg) no-repeat scroll 0px 0px;
Run Code Online (Sandbox Code Playgroud)

发生了什么?

asp.net svg iis-express visual-studio-2012

5
推荐指数
1
解决办法
792
查看次数

使用 tm 包删除 R 中的表情符号

我正在使用 tm 包来清理 Twitter 语料库。但是,该软件包无法清理表情符号。

\n\n

这是复制的代码:

\n\n
July4th_clean <- tm_map(July4th_clean, content_transformer(tolower))\nError in FUN(content(x), ...) : invalid input 'RT ElleJohnson Love of country is encircling the globes \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd july4thweekend July4th FourthOfJuly IndependenceDay NotAvailableOnIn' in 'utf8towcs'\n
Run Code Online (Sandbox Code Playgroud)\n\n

有人可以指出我使用 tm 包删除表情符号的正确方向吗?

\n\n

谢谢你,

\n\n

路易斯

\n

r emoticons sentiment-analysis tm

4
推荐指数
1
解决办法
1万
查看次数