无法理解javascript错误

编程入门 行业动态 更新时间:2024-10-25 01:25:09
本文介绍了无法理解javascript错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经下载了一个示例Web项目,以便在asp中使用指纹认证(这里是链接 onlinedemo.digitalpersona/Samples/UareU/Windows/dotNET/UareU_MySql_WebCSharp.zip ),但在以下javascript语句中存在一些语法错误(如VS所示) - 功能 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(here is the link onlinedemo.digitalpersona/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错误

本文发布于:2023-07-27 14:01:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1222745.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   javascript

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!