当前位置:网站首页>Execute function now
Execute function now
2022-07-22 19:11:00 【Please call me Gerald 6】
The function is defined , Immediately called , This function is called the immediate execution function , It's often done only once
function (){
alert(" I'm an anonymous function ~~");
}()
// No variables defined , Often it will not be implemented , Will report a mistake
Put a bracket around the whole function , Make it a whole , In this way, the browser will not report an error when calling
(function (){
alert(" I'm an anonymous function ~~");
})()
(function(a,b){
console.log ("a = " + a);
console.log ("b = " + b);
})(123,456);
// Output "a=123" ,"b=456"
边栏推荐
- Pat basic problem set 7-26 word length (simplified code)
- Flink learning notes (IV) Flink runtime architecture
- numpy 求矩阵非零元素的均值
- Data storage partition -- range partition, hash partition, list partition, and indispensable part of performance tuning
- Leetcode: 627. Change gender
- Ways of data optimization
- 1. Qimage filling transparent brush; 2.path.addtext how to add line breaks
- 卧式单面多轴钻孔组合机床动力滑台液压系统的设计
- JVM调优实战-从零开始 | 项目有关JVM调优总结
- Exercise 7-4 find out the elements that are not common to two arrays (C language)
猜你喜欢
融云首席科学家任杰:历练出人才,职场「经历>经验」
二、IDEA搭建JFinal项目+代码自动生成+数据库操作测试(三种方式)
高手常用的15 种 SQL 优化
Numpy finding the mean value of non-zero elements of matrix
Programmer interview golden code interview question 01.02. determine whether it is character rearrangement
mysql5.7解压版配置步骤
CentOS7安装Mysql5.7解压版&Navicat连接Mysql&防火墙设置——亲测有效
paper - A Physics-based Noise Formation Model for Extreme Low-light Raw Denoising
Kindling the Darkness: A Practical Low-light Image Enhancer
音频 3A 处理实践,让你的应用更「动听」
随机推荐
[QT source code reuse] qdatetimeedit drop-down button event response
融云漫话:没有一个人躲得过“视频会议”
PTA basic questions 7-28 monkeys choose the king (simple method)
字符集和字符编码
OSI七层网络模型
Flink learning notes (IV) Flink runtime architecture
Pat grade B 1020 moon cake (pay attention to the measuring points)
MNIST handwritten numeral recognition case tensorflow 2.0 practice
Sub database and sub table
1. Lei Dian: transfer MySQL database to Oracle, 2.qt5.12.3 connect Oracle 12C database
米哈游大量招募新同学,校招提前批最后一天!
写作单词积累
Numpy finding the mean value of non-zero elements of matrix
2、 Idea build jfinal project + automatic code generation + database operation test (three ways)
Upgrade win10sp1 to the latest version; Qt5.9.6 static compilation (network is valid)
Ways of data optimization
JUC-同步器
How can one page nest another page in thymeleaf? About page nesting, the tag tells you what you should know
代码—递归
Leetcode: 1179. Reformat department table