JavaScript error_reporting function
A JavaScript equivalent of PHP’s error_reporting
function error_reporting (level) {
// http://kevin.vanzonneveld.net
// + original by: Brett Zamir (http://brett-zamir.me)
// - depends on: ini_set
// % note 1: This will not set a global_value or access level for the ini item
// % note 2: If you wish the default value to be as in PHP, you must manually set it
// % note 3: This function depends on functions implementing error handling
// % note 4: See also our at() error suppressor function (@ operator in PHP) in experimental/language/
// * example 1: error_reporting(1);
// * returns 1: 6135
return this.ini_set('error_reporting', level);
}
Example 1
error_reporting(1);
Should return
6135
Комментарии:
Нету комментариев для вывода...