自我调用函数变体

时间:2017-02-16 21:36:04

标签: javascript

这两个功能是否相同? (见最后的括号)

<div ng-prevent-navigation="vm.pageShouldBeReloaded"
     ng-prevent-navigation-text="Payment form has unsaved changes. 
        If you leave the page now you will lose those changes."
></div>


(function () {
  alert('hi');
}());

0 个答案:

没有答案