简体   繁体   English

javascript:方法之前是什么意思?

[英]What does javascript: before a method means?

What does javascript: before a method means? javascript:方法之前是什么意思?

I know that it is calling a function, but in what cases should we use it? 我知道它正在调用一个函数,但是在什么情况下我们应该使用它呢?

What is the difference between javascript:method() and method()? javascript:method()和method()有什么区别?

Inline ' JavaScript: ' (eg onclick="JavaScript:alert('test');" ) used to specify language of a following script snippet. 内联“ JavaScript: ”(例如onclick =“ JavaScript:alert('test');” )用于指定以下脚本代码段的语言。 Now it is deprecated and you should not use it. 现在已弃用,您不应使用它。 The current HTML language specification does not tell anything about this at all. 当前的HTML语言规范根本没有说明任何事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM