2013-04-08 53 views

回答

2

製作undefined可選:

// the semi-colon before function invocation is a safety net against concatenated 
// scripts and/or other plugins which may not be closed properly. 
; (function ($ : any, window, document, undefined?) { 

// undefined is used here as the undefined global variable in ECMAScript 3 is 
// mutable (ie. it can be changed by someone else). undefined isn't really being 
// passed in so we can ensure the value of it is truly undefined. In ES5, undefined 
// can no longer be modified. 

這將使該模板編制,因爲不確定是不是傳遞給函數。

+0

完美!謝謝! – djbyter 2013-04-11 14:26:04

相關問題