无法理解javascript错误 [英] Unable to understand javascript error

查看:110
本文介绍了无法理解javascript错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了一个示例Web项目,以便在asp.net中使用指纹认证(这里是链接 http://onlinedemo.digitalpersona.com/Samples/UareU/Windows/dotNET/UareU_MySql_WebCSharp.zip ),但在以下javascript语句中存在一些语法错误(如VS所示) -

<前lang =Javascript> 功能 objReader :: On_Captured(reader,captureResult)
{
}



其中objReader是对象标签的id。请帮助我无法理解这一行。

实际上我不明白'''''在这里使用什么

解决方案

''::'在JavaScript标识符中无效,因此解析器正在读取objReader并期望它后跟( - JS参数列表的开头。



我希望在C ++代码中使用''::'',而不是JavaScript。这段代码在两者都没有。



也许在项目中还有其他东西可以处理它以生成有效的JS代码吗?在这种情况下,Visual Studio可能不知道该处理但它可能仍然运行。这似乎不太可能。


I have downloaded a sample web project to use fingerprint authentication in asp.net(here is the link http://onlinedemo.digitalpersona.com/Samples/UareU/Windows/dotNET/UareU_MySql_WebCSharp.zip ),but there is some syntax error(as shown by VS) in the following javascript statement-

function objReader::On_Captured(reader, captureResult)
{
}


where objReader is the id of an object tag. Please help i am unable to understand this line.
Actually i dont understant what is use of ''::'' here

解决方案

The ''::'' is not valid in a JavaScript identifier, so the parser is reading "objReader" and expects it to be followed by "(" - the beginning of a JS parameter list.

I''d expect ''::'' in C++ code, not JavaScript. This code is valid in neither.

Maybe there is something else in the project that should process this to produce valid JS code? In which case Visual Studio may be unaware of that processing but it may run anyway. This seems unlikely.


这篇关于无法理解javascript错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆