mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-09 07:24:04 +08:00
12 lines
9.4 KiB
HTML
12 lines
9.4 KiB
HTML
<article id="wikiArticle">
|
||
<p></p><p></p>
|
||
<p>下面列出了 JavaScript 抛出的错误。这些错误是有用的调试帮助,但报告的问题并不总是十分明了。下面的页面提供有关这些错误的详细信息。每个错误都是基于 <a href="Reference/Global_Objects/Error" title="通过Error的构造器可以创建一个错误对象。当运行时错误产生时,Error的实例对象会被抛出。Error对象也可用于用户自定义的异常的基础对象。下面列出了各种内建的标准错误类型。"><code>Error</code></a> 的对象,并且具有名称和消息。</p>
|
||
<p>Web 控制台中显示的错误可能包含指向下面相应页面的链接,以帮助您快速理解代码中的问题。</p>
|
||
<h2 id="错误列表">错误列表</h2>
|
||
<p>在此列表中,每个页面按名称(错误类型)和信息(更详细的容易理解的错误信息)列出。 总之,这两者提供了理解和解决错误的线索。 有关更多信息,请按照以下链接!</p>
|
||
<p></p><ul><li><a href="Reference/Errors/Property_access_denied">Error: Permission denied to access property "x"</a></li><li><a href="Reference/Errors/Too_much_recursion">InternalError: too much recursion</a></li><li><a href="Reference/Errors/Not_a_codepoint">RangeError: argument is not a valid code point</a></li><li><a href="Reference/Errors/Invalid_array_length">RangeError: invalid array length</a></li><li><a href="Reference/Errors/Invalid_date">RangeError: invalid date</a></li><li><a href="Reference/Errors/Precision_range">RangeError: precision is out of range</a></li><li><a href="Reference/Errors/Bad_radix">RangeError: radix must be an integer</a></li><li><a href="Reference/Errors/Resulting_string_too_large">RangeError: repeat count must be less than infinity</a></li><li><a href="Reference/Errors/Negative_repetition_count">RangeError: repeat count must be non-negative</a></li><li><a href="Reference/Errors/Not_defined">ReferenceError: "x" is not defined</a></li><li><a href="Reference/Errors/Undeclared_var">ReferenceError: assignment to undeclared variable "x"</a></li><li><a href="Reference/Errors/Cant_access_lexical_declaration_before_init">ReferenceError: can't access lexical declaration`X' before initialization</a></li><li><a href="Reference/Errors/Deprecated_caller_or_arguments_usage">ReferenceError: deprecated caller or arguments usage</a></li><li><a href="Reference/Errors/Invalid_assignment_left-hand_side">ReferenceError: invalid assignment left-hand side</a></li><li><a href="Reference/Errors/Undefined_prop">ReferenceError: reference to undefined property "x"</a></li><li><a href="Reference/Errors/Deprecated_octal">SyntaxError: "0"-prefixed octal literals and octal escape seq. are deprecated</a></li><li><a href="Reference/Errors/Strict_Non_Simple_Params">SyntaxError: "use strict" not allowed in function with non-simple parameters</a></li><li><a href="Reference/Errors/Reserved_identifier">SyntaxError: "x" is a reserved identifier</a></li><li><a href="Reference/Errors/Bad_octal">SyntaxError: "x" is not a legal ECMA-262 octal constant</a></li><li><a href="Reference/Errors/JSON_bad_parse">SyntaxError: JSON.parse: bad parsing</a></li><li><a href="Reference/Errors/Malformed_formal_parameter">SyntaxError: Malformed formal parameter</a></li><li><a href="Reference/Errors/Unexpected_token">SyntaxError: Unexpected token</a></li><li><a href="Reference/Errors/Deprecated_source_map_pragma">SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead</a></li><li><a href="Reference/Errors/Invalid_for-of_initializer">SyntaxError: a declaration in the head of a for-of loop can't have an initializer</a></li><li><a href="Reference/Errors/Delete_in_strict_mode">SyntaxError: applying the 'delete' operator to an unqualified name is deprecated</a></li><li><a href="Reference/Errors/Invalid_for-in_initializer">SyntaxError: for-in loop head declarations may not have initializers</a></li><li><a href="Reference/Errors/Unnamed_function_statement">SyntaxError: function statement requires a name</a></li><li><a href="Reference/Errors/Identifier_after_number">SyntaxError: identifier starts immediately after numeric literal</a></li><li><a href="Reference/Errors/Illegal_character">SyntaxError: illegal character</a></li><li><a href="Reference/Errors/Bad_regexp_flag">SyntaxError: invalid regular expression flag "x"</a></li><li><a href="Reference/Errors/Missing_parenthesis_after_argument_list">SyntaxError: missing ) after argument list</a></li><li><a href="Reference/Errors/Missing_parenthesis_after_condition">SyntaxError: missing ) after condition</a></li><li><a href="Reference/Errors/Missing_colon_after_property_id">SyntaxError: missing : after property id</a></li><li><a href="Reference/Errors/Missing_semicolon_before_statement">SyntaxError: missing ; before statement</a></li><li><a href="Reference/Errors/Missing_initializer_in_const">SyntaxError: missing = in const declaration</a></li><li><a href="Reference/Errors/Missing_bracket_after_list">SyntaxError: missing ] after element list</a></li><li><a href="Reference/Errors/Missing_formal_parameter">SyntaxError: missing formal parameter</a></li><li><a href="Reference/Errors/Missing_name_after_dot_operator">SyntaxError: missing name after . operator</a></li><li><a href="Reference/Errors/No_variable_name">SyntaxError: missing variable name</a></li><li><a href="Reference/Errors/Missing_curly_after_function_body">SyntaxError: missing } after function body</a></li><li><a href="Reference/Errors/Missing_curly_after_property_list">SyntaxError: missing } after property list</a></li><li><a href="Reference/Errors/Redeclared_parameter">SyntaxError: redeclaration of formal parameter "x"</a></li><li><a href="Reference/Errors/Bad_return_or_yield">SyntaxError: return not in function</a></li><li><a href="Reference/Errors/Equal_as_assign">SyntaxError: test for equality (==) mistyped as assignment (=)?</a></li><li><a href="Reference/Errors/Unterminated_string_literal">SyntaxError: unterminated string literal</a></li><li><a href="Reference/Errors/No_properties">TypeError: "x" has no properties</a></li><li><a href="Reference/Errors/Unexpected_type">TypeError: "x" is (not) "y"</a></li><li><a href="Reference/Errors/Not_a_constructor">TypeError: "x" is not a constructor</a></li><li><a href="Reference/Errors/Not_a_function">TypeError: "x" is not a function</a></li><li><a href="Reference/Errors/No_non-null_object">TypeError: "x" is not a non-null object</a></li><li><a href="Reference/Errors/Read-only">TypeError: "x" is read-only</a></li><li><a href="Reference/Errors/is_not_iterable">TypeError: 'x' is not iterable</a></li><li><a href="Reference/Errors/More_arguments_needed">TypeError: More arguments needed</a></li><li><a href="Reference/Errors/Dead_object">TypeError: can't access dead object</a></li><li><a href="Reference/Errors/Cant_access_property">TypeError: can't access property "x" of "y"</a></li><li><a href="Reference/Errors/Cant_define_property_object_not_extensible">TypeError: can't define property "x": "obj" is not extensible</a></li><li><a href="Reference/Errors/Non_configurable_array_element">TypeError: can't delete non-configurable array element</a></li><li><a href="Reference/Errors/Cant_redefine_property">TypeError: can't redefine non-configurable property "x"</a></li><li><a href="Reference/Errors/Cyclic_object_value">TypeError: cyclic object value</a></li><li><a href="Reference/Errors/in_operator_no_object">TypeError: invalid 'in' operand "x"</a></li><li><a href="Reference/Errors/invalid_right_hand_side_instanceof_operand">TypeError: invalid 'instanceof' operand 'x'</a></li><li><a href="Reference/Errors/Array_sort_argument">TypeError: invalid Array.prototype.sort argument</a></li><li><a href="Reference/Errors/Typed_array_invalid_arguments">TypeError: invalid arguments</a></li><li><a href="Reference/Errors/Invalid_const_assignment">TypeError: invalid assignment to const "x"</a></li><li><a href="Reference/Errors/Cant_delete">TypeError: property "x" is non-configurable and can't be deleted</a></li><li><a href="Reference/Errors/Getter_only">TypeError: setting getter-only property "x"</a></li><li><a href="Reference/Errors/Var_hides_argument">TypeError: variable "x" redeclares argument</a></li><li><a href="Reference/Errors/Malformed_URI">URIError: malformed URI sequence</a></li><li><a href="Reference/Errors/Already_has_pragma">Warning: -file- is being assigned a //# sourceMappingURL, but already has one</a></li><li><a href="Reference/Errors/Deprecated_toLocaleFormat">Warning: Date.prototype.toLocaleFormat is deprecated</a></li><li><a href="Reference/Errors/For-each-in_loops_are_deprecated">Warning: JavaScript 1.6's for-each-in loops are deprecated</a></li><li><a href="Reference/Errors/Deprecated_String_generics">Warning: String.x is deprecated; use String.prototype.x instead</a></li><li><a href="Reference/Errors/Deprecated_expression_closures">Warning: expression closures are deprecated</a></li><li><a href="Reference/Errors/Stmt_after_return">Warning: unreachable code after return statement</a></li><li><a href="Reference/Errors/Called_on_incompatible_type">X.prototype.y called on incompatible type</a></li><li><a href="Reference/Errors/Reduce_of_empty_array_with_no_initial_value">类型错误:在没有初始值的情况下简化空数组</a></li></ul><p></p>
|
||
<h2 id="相关链接">相关链接</h2>
|
||
<ul>
|
||
<li><a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_went_wrong">What went wrong? Troubleshooting JavaScript</a>: Beginner's introductory tutorial on fixing JavaScript errors.</li>
|
||
</ul>
|
||
</article> |