'::'(双冒号)在javascript中为事件做什么? [英] What does ‘::’ (double colon) do in javascript for events?

查看:157
本文介绍了'::'(双冒号)在javascript中为事件做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了这段代码,我正试图决定它是如何工作的。

I saw this code and I'm scratching my head trying to decide how it works.

<SCRIPT LANGUAGE=javascript> 

     function SpeechMikeControl::SPMEventButton(lDeviceID, EventId) {
        alert("lDeviceID=" + lDeviceID + ", EventId=" + EventId);
     }

</SCRIPT>

双冒号?这是从网页上使用飞利浦语音麦克风。

double colon? This is from using a philips speech mike from a web page.

知道这个双冒号是什么意思吗?对我来说这似乎是一个语法错误,但它确实有效! (至少在IE中)。

Any idea what this double colon means? It seems like a syntax error to me but it works! (at least in IE).

推荐答案

我已经能够在 Microsoft Office Infopath 2003 。它似乎是一个 JScript 语法:

I've been able to find an obscure reference in some scanned manual from Microsoft Office Infopath 2003. It appears to be a JScript syntax:


一个双冒号用作分隔符脚本ID和事件
名称之间的

a double colon is used as separator between the script ID and the event name

我的猜测是不是部分(或不再是部分) )Internet Explorer的ECMAScript实现,但它属于(或曾经属于)Microsoft Office的实现。

My guess is that's not part (or no longer part) of Internet explorer's ECMAScript implementation but it belongs (or used to belong) to Microsoft Office's implementation.

这篇关于'::'(双冒号)在javascript中为事件做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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