aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIrvin <irvinfly@gmail.com>2022-02-16 02:14:18 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commitd44f5032d0f53256b2d5aef505d6b593fd3cd158 (patch)
tree4b585f4be9c9a2712664ad10e7acf62c83fff51f
parentf45e9e070c93ebbd83d488bdd775987a4d75c201 (diff)
downloadtranslated-content-d44f5032d0f53256b2d5aef505d6b593fd3cd158.tar.gz
translated-content-d44f5032d0f53256b2d5aef505d6b593fd3cd158.tar.bz2
translated-content-d44f5032d0f53256b2d5aef505d6b593fd3cd158.zip
fix yari h2m dry run errors (zh-CN)
-rw-r--r--files/zh-cn/web/javascript/a_re-introduction_to_javascript/index.html40
-rw-r--r--files/zh-cn/web/javascript/about_javascript/index.html3
-rw-r--r--files/zh-cn/web/javascript/closures/index.html4
-rw-r--r--files/zh-cn/web/javascript/data_structures/index.html2
-rw-r--r--files/zh-cn/web/javascript/equality_comparisons_and_sameness/index.html5
-rw-r--r--files/zh-cn/web/javascript/eventloop/index.html4
-rw-r--r--files/zh-cn/web/javascript/guide/control_flow_and_error_handling/index.html20
-rw-r--r--files/zh-cn/web/javascript/guide/details_of_the_object_model/index.html18
-rw-r--r--files/zh-cn/web/javascript/guide/expressions_and_operators/index.html26
-rw-r--r--files/zh-cn/web/javascript/guide/functions/index.html26
-rw-r--r--files/zh-cn/web/javascript/guide/grammar_and_types/index.html8
-rw-r--r--files/zh-cn/web/javascript/guide/index.html291
-rw-r--r--files/zh-cn/web/javascript/guide/indexed_collections/index.html8
-rw-r--r--files/zh-cn/web/javascript/guide/introduction/index.html4
-rw-r--r--files/zh-cn/web/javascript/guide/iterators_and_generators/index.html2
-rw-r--r--files/zh-cn/web/javascript/guide/modules/index.html36
-rw-r--r--files/zh-cn/web/javascript/guide/regular_expressions/assertions/index.html8
-rw-r--r--files/zh-cn/web/javascript/guide/regular_expressions/character_classes/index.html4
-rw-r--r--files/zh-cn/web/javascript/guide/regular_expressions/groups_and_ranges/index.html8
-rw-r--r--files/zh-cn/web/javascript/guide/regular_expressions/index.html4
-rw-r--r--files/zh-cn/web/javascript/guide/regular_expressions/unicode_property_escapes/index.html12
-rw-r--r--files/zh-cn/web/javascript/guide/using_promises/index.html6
-rw-r--r--files/zh-cn/web/javascript/guide/working_with_objects/index.html4
-rw-r--r--files/zh-cn/web/javascript/index.html8
-rw-r--r--files/zh-cn/web/javascript/inheritance_and_the_prototype_chain/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/classes/constructor/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/classes/extends/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/classes/index.html16
-rw-r--r--files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/classes/static/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/deprecated_and_obsolete_features/the_legacy_iterator_protocol/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/errors/bad_octal/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/errors/deprecated_source_map_pragma/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/errors/for-each-in_loops_are_deprecated/index.html57
-rw-r--r--files/zh-cn/web/javascript/reference/errors/getter_only/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/errors/missing_formal_parameter/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/errors/missing_semicolon_before_statement/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/errors/not_defined/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/functions/arguments/callee/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/functions/arguments/index.html26
-rw-r--r--files/zh-cn/web/javascript/reference/functions/arrow_functions/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/functions/get/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/functions/index.html24
-rw-r--r--files/zh-cn/web/javascript/reference/functions/method_definitions/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/concat/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/every/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/flat/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/foreach/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/includes/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/index.md6
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/indexof/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/join/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/length/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/reduceright/index.html30
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/some/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/sort/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/values/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/asyncfunction/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/atomics/notify/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/atomics/wait/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/bigint/bigint/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/bigint/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html23
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/boolean/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/dataview/getfloat32/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/dataview/getfloat64/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/dataview/getint16/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/dataview/getint32/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/dataview/getint8/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/dataview/getuint16/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/dataview/getuint32/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/dataview/getuint8/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/dataview/setint8/index.html9
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/date/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/getmilliseconds/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/getminutes/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/getseconds/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/gettimezoneoffset/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/index.html18
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html14
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/settime/index.html7
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html80
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/encodeuri/index.html93
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/error/columnnumber/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/error/filename/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/error/index.html44
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/error/message/index.html75
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/error/name/index.html75
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/error/tosource/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/error/tostring/index.html79
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/escape/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/finalizationregistry/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/float32array/index.html69
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/float64array/index.html69
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/function/apply/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/function/arguments/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/function/bind/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/function/call/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/function/displayname/index.html56
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/function/name/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html56
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/generator/throw/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/generatorfunction/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/infinity/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/int16array/index.html69
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/int32array/index.html67
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/int8array/index.html67
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/internalerror/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html55
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/isfinite/index.html26
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/isnan/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/json/stringify/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/map/@@tostringtag/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/map/delete/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/map/has/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/map/index.html18
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/map/size/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/map/values/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/atanh/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/ceil/index.html9
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/cosh/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/e/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html61
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/min/index.html56
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/random/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/round/index.html57
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/epsilon/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/max_safe_integer/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/max_value/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/nan/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html53
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/parsefloat/index.html56
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/positive_infinity/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/toexponential/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/tolocalestring/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/toprecision/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/tosource/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/tostring/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/valueof/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/__definegetter__/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/__definesetter__/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/__lookupgetter__/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/__lookupsetter__/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/assign/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/defineproperty/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/entries/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/freeze/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptors/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/getownpropertysymbols/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/getprototypeof/index.html19
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/isextensible/index.html48
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/isfrozen/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/isprototypeof/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/preventextensions/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/proto/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/tostring/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/parseint/index.html9
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/any/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/reject/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/defineproperty/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/deleteproperty/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/get/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/getownpropertydescriptor/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/has/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/ownkeys/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/set/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/rangeerror/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/referenceerror/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/reflect/defineproperty/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/reflect/deleteproperty/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/reflect/getownpropertydescriptor/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/reflect/has/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/@@search/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/@@species/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/@@split/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/compile/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/exec/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/flags/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/global/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/ignorecase/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/input/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html53
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/lastmatch/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/lastparen/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/leftcontext/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/multiline/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/n/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/regexp/index.html3
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/rightcontext/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/tostring/index.html51
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/unicode/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/entries/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/has/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html59
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/big/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/charcodeat/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html56
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/fromcodepoint/index.html9
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/includes/index.html7
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/index.html60
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html59
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/length/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/match/index.html71
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/matchall/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/padstart/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/repeat/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/replace/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/replaceall/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/small/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/split/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/trimend/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/trimstart/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/for/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/keyfor/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/split/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html9
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/tosource/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/tostringtag/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/valueof/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/syntaxerror/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/@@iterator/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/@@species/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/buffer/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/bytelength/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/byteoffset/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/bytes_per_element/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/copywithin/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/entries/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/every/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/fill/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/filter/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/find/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/findindex/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/foreach/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/from/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/includes/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/indexof/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/join/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/keys/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/lastindexof/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/length/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/map/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/name/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/of/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/reduce/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/reduceright/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/reverse/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/set/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/some/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/sort/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/tostring/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/typedarray/values/index.html52
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/uint8clampedarray/index.html84
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/undefined/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/unescape/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/uneval/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html56
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html48
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html48
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakref/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakset/add/index.html48
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakset/delete/index.html48
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakset/has/index.html48
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/webassembly/global/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/webassembly/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html7
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/webassembly/instantiate/index.html14
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/webassembly/instantiatestreaming/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/webassembly/memory/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/webassembly/module/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/webassembly/table/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/index.html713
-rw-r--r--files/zh-cn/web/javascript/reference/lexical_grammar/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/operators/await/index.html54
-rw-r--r--files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/operators/bitwise_not/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/operators/comma_operator/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/operators/conditional_operator/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/operators/delete/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/operators/destructuring_assignment/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/operators/function/index.html50
-rw-r--r--files/zh-cn/web/javascript/reference/operators/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/operators/instanceof/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/operators/logical_or/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/operators/new/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/operators/optional_chaining/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/operators/property_accessors/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/operators/this/index.html22
-rw-r--r--files/zh-cn/web/javascript/reference/operators/typeof/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/statements/async_function/index.html17
-rw-r--r--files/zh-cn/web/javascript/reference/statements/break/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/statements/class/index.html1
-rw-r--r--files/zh-cn/web/javascript/reference/statements/continue/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/statements/debugger/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/statements/do...while/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/statements/export/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/statements/for-await...of/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/statements/for...in/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/statements/for/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/statements/function/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/statements/import/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/statements/return/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/statements/with/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/strict_mode/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/strict_mode/transitioning_to_strict_mode/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/template_literals/index.html8
-rw-r--r--files/zh-cn/web/javascript/typed_arrays/index.html4
-rw-r--r--files/zh-tw/web/javascript/guide/functions/index.html2
384 files changed, 1487 insertions, 10549 deletions
diff --git a/files/zh-cn/web/javascript/a_re-introduction_to_javascript/index.html b/files/zh-cn/web/javascript/a_re-introduction_to_javascript/index.html
index 1c4b9b7ab0..2e33df8190 100644
--- a/files/zh-cn/web/javascript/a_re-introduction_to_javascript/index.html
+++ b/files/zh-cn/web/javascript/a_re-introduction_to_javascript/index.html
@@ -18,7 +18,7 @@ translation_of: Web/JavaScript/A_re-introduction_to_JavaScript
<p>几个月后,Microsoft 随 IE 3 发布推出了一个与之基本兼容的语言 JScript。又过了几个月,Netscape 将 JavaScript 提交至 <a href="http://www.ecma-international.org">Ecma International</a>(一个欧洲标准化组织), {{Glossary("ECMAScript")}} 标准第一版便在 1997 年诞生了,随后在 1999 年以 <a href="http://www.ecma-international.org/publications/standards/Ecma-262.htm">ECMAScript 第三版</a>的形式进行了更新,从那之后这个标准没有发生过大的改动。由于委员会在语言特性的讨论上发生分歧,ECMAScript 第四版尚未推出便被废除,但随后于 2009 年 12 月发布的 ECMAScript 第五版引入了第四版草案加入的许多特性。第六版标准已经于 2015 年 6 月发布。</p>
<div class="note">
-<p><strong>注意:</strong> 由于这种用法更常见,从这里开始,我们将使用 JavaScript 来指代 ECMAScript 。</p>
+<p><strong>备注:</strong> 由于这种用法更常见,从这里开始,我们将使用 JavaScript 来指代 ECMAScript 。</p>
</div>
<p>与大多数编程语言不同,JavaScript 没有输入或输出的概念。它是一个在宿主环境(host environment)下运行的脚本语言,任何与外界沟通的机制都是由宿主环境提供的。浏览器是最常见的宿主环境,但在非常多的其他程序中也包含 JavaScript 解释器,如 Adobe Acrobat、Adobe Photoshop、SVG 图像、Yahoo! 的 Widget 引擎,<a href="http://nodejs.org">Node.js</a> 之类的服务器端环境,NoSQL 数据库(如开源的 <a href="http://couchdb.apache.org">Apache CouchDB</a>)、嵌入式计算机,以及包括 <a href="http://www.gnome.org">GNOME</a> (注:GNU/Linux 上最流行的 GUI 之一)在内的桌面环境等等。</p>
@@ -90,7 +90,7 @@ parseInt("010", 10); // 10
<p>一些老版本的浏览器会将首字符为“0”的字符串当做八进制数字,2013 年以前的 JavaScript 实现会返回一个意外的结果:</p>
-<pre class="brush: js line-numbers language-js">parseInt("010"); // 8
+<pre class="brush: js">parseInt("010"); // 8
parseInt("0x10"); // 16</pre>
<p>这是因为字符串以数字 0 开头,{{jsxref("Global_Objects/parseInt", "parseInt()")}}函数会把这样的字符串视作八进制数字;同理,0x开头的字符串则视为十六进制数字。</p>
@@ -104,7 +104,7 @@ parseInt("0x10"); // 16</pre>
<p>一元运算符 + 也可以把数字字符串转换成数值:</p>
-<pre class="brush: js line-numbers language-js">+ "42"; // 42
+<pre class="brush: js">+ "42"; // 42
+ "010"; // 10
+ "0x10"; // 16</pre>
@@ -143,7 +143,9 @@ isFinite("0"); // true
// 如果是纯数值类型的检测,则返回 false:
Number.isFinite("0"); // false</pre>
-<div class="note"><strong>备注:</strong> {{jsxref("Global_Objects/parseInt", "parseInt()")}} 和 {{jsxref("Global_Objects/parseFloat", "parseFloat()")}} 函数会尝试逐个解析字符串中的字符,直到遇上一个无法被解析成数字的字符,然后返回该字符前所有数字字符组成的数字。但是运算符 "+"对字符串的转换方式与之不同, 只要字符串含有无法被解析成数字的字符,该字符串就将被转换成 <code>NaN</code>。可分别使用这两种方法解析“10.2abc”这一字符串,并比较得到的结果,来理解这两种方法的区别。</div>
+<div class="note">
+<p><strong>备注:</strong> {{jsxref("Global_Objects/parseInt", "parseInt()")}} 和 {{jsxref("Global_Objects/parseFloat", "parseFloat()")}} 函数会尝试逐个解析字符串中的字符,直到遇上一个无法被解析成数字的字符,然后返回该字符前所有数字字符组成的数字。但是运算符 "+"对字符串的转换方式与之不同, 只要字符串含有无法被解析成数字的字符,该字符串就将被转换成 <code>NaN</code>。可分别使用这两种方法解析“10.2abc”这一字符串,并比较得到的结果,来理解这两种方法的区别。</p>
+</div>
<h2 id="字符串">字符串</h2>
@@ -190,12 +192,12 @@ Boolean(234); // true
<p><code><strong>let</strong></code> 语句声明一个块级作用域的本地变量,并且可选的将其初始化为一个值。</p>
-<pre class="brush: js line-numbers language-js">let a;
+<pre class="brush: js">let a;
let name = 'Simon';</pre>
<p>下面是使用  <code><strong>let</strong></code> 声明变量作用域的例子:</p>
-<pre class="brush: js line-numbers language-js">// myLetVariable 在这里 *不能* 被引用
+<pre class="brush: js">// myLetVariable 在这里 *不能* 被引用
for (let myLetVariable = 0; myLetVariable &lt; 5; myLetVariable++) {
// myLetVariable 只能在这里引用
@@ -205,7 +207,7 @@ for (let myLetVariable = 0; myLetVariable &lt; 5; myLetVariable++) {
<p><code><strong>const</strong></code> 允许声明一个不可变的常量。这个常量在定义域内总是可见的。</p>
-<pre class="brush: js line-numbers language-js">const Pi = 3.14; // 设置 Pi 的值
+<pre class="brush: js">const Pi = 3.14; // 设置 Pi 的值
Pi = 1; // 将会抛出一个错误因为你改变了一个常量的值。</pre>
<p><code><strong>var</strong></code> 是最常见的声明变量的关键字。它没有其他两个关键字的种种限制。这是因为它是传统上在 JavaScript 声明变量的唯一方法。使用 <strong><code>var</code></strong> 声明的变量在它所声明的整个函数都是可见的。</p>
@@ -216,7 +218,7 @@ var name = "simon";
<p>一个使用  <strong><code>var</code> </strong>声明变量的语句块的例子:</p>
-<pre class="brush: js line-numbers language-js">// myVarVariable在这里 *能* 被引用
+<pre class="brush: js">// myVarVariable在这里 *能* 被引用
for (var myVarVariable = 0; myVarVariable &lt; 5; myVarVariable++) {
// myVarVariable 整个函数中都能被引用
@@ -302,13 +304,13 @@ do {
<p>JavaScript 也还包括其他两种重要的 for 循环: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of"><code>for</code>...<code>of</code></a></p>
-<pre class="brush: js line-numbers language-js">for (let value of array) {
+<pre class="brush: js">for (let value of array) {
// do something with value
}</pre>
<p>和 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in"><code>for</code>...<code>in</code></a> :</p>
-<pre class="brush: js line-numbers language-js">for (let property in object) {
+<pre class="brush: js">for (let property in object) {
// do something with object property
}</pre>
@@ -432,7 +434,7 @@ var name = obj.name;
<p>和:</p>
-<pre class="brush: js line-numbers language-js">// 括号表示法(bracket notation)
+<pre class="brush: js">// 括号表示法(bracket notation)
obj['name'] = 'Simon';
var name = obj['name'];
// can use a variable to define a key
@@ -446,13 +448,13 @@ obj["for"] = 'Simon'; // 工作正常
</pre>
<div class="note">
-<p><strong>注意:</strong>从 ECMAScript 5 开始,预留关键字可以作为对象的属性名(reserved words may be used as object property names "in the buff")。 这意味着当定义对象字面量时不需要用双引号了。参见 ES5 <a href="http://es5.github.io/#x7.6.1">Spec</a>.</p>
+<p><strong>备注:</strong>从 ECMAScript 5 开始,预留关键字可以作为对象的属性名(reserved words may be used as object property names "in the buff")。 这意味着当定义对象字面量时不需要用双引号了。参见 ES5 <a href="http://es5.github.io/#x7.6.1">Spec</a>.</p>
</div>
<p>关于对象和原型的详情参见: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/prototype">Object.prototype</a>. 解释对象原型和对象原型链可以参见:<a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Inheritance_and_the_prototype_chain">继承与原型链</a>。</p>
<div class="note">
-<p><strong>注意:</strong>从 ECMAScript 2015 开始,对象键可以在创建时使用括号表示法由变量定义。{[phoneType]: 12345} 可以用来替换 <code>var userPhone = {}; userPhone[phoneType] = 12345</code> .</p>
+<p><strong>备注:</strong>从 ECMAScript 2015 开始,对象键可以在创建时使用括号表示法由变量定义。{[phoneType]: 12345} 可以用来替换 <code>var userPhone = {}; userPhone[phoneType] = 12345</code> .</p>
</div>
<h2 id="数组">数组</h2>
@@ -648,8 +650,8 @@ avg(2, 3, 4, 5); // 3.5</pre>
avg(2, 3, 4, 5); // 3.5
</pre>
-<div class="blockIndicator note">
-<p>在上面这段代码中,所有被传入该函数的参数都被变量 <strong>args </strong>所持有。</p>
+<div class="note">
+<p><strong>备注:</strong>在上面这段代码中,所有被传入该函数的参数都被变量 <strong>args </strong>所持有。</p>
<p>需要注意的是,无论“剩余参数操作符”被放置到函数声明的哪里,它都会把除了自己之前的所有参数存储起来。比如函数:function avg(<strong>firstValue</strong>, ...args) 会把传入函数的第一个值存入 <strong>firstValue</strong>,其他的参数存入 <strong>args</strong>。这是虽然一个很有用的语言特性,却也会带来新的问题。<code>avg()</code> 函数只接受逗号分开的参数列表 -- 但是如果你想要获取一个数组的平均值怎么办?一种方法是将函数按照如下方式重写:</p>
</div>
@@ -671,8 +673,8 @@ avgArray([2, 3, 4, 5]); // 3.5
<p>传给 <code>apply()</code> 的第二个参数是一个数组,它将被当作 <code>avg()</code> 的参数列表使用,至于第一个参数 <code>null</code>,我们将在后面讨论。这也正说明了一个事实——函数也是对象。</p>
-<div class="blockIndicator note">
-<p>通过使用<a href="/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax">展开语法</a>,你也可以获得同样的效果。</p>
+<div class="note">
+<p><strong>备注:</strong>通过使用<a href="/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax">展开语法</a>,你也可以获得同样的效果。</p>
<p>比如说:<code>avg(...numbers)</code></p>
</div>
@@ -735,7 +737,9 @@ b; // 2
<h2 id="自定义对象">自定义对象</h2>
-<div class="note"><strong>备注:</strong>关于 JavaScript 中面向对象编程更详细的信息,请参考 <a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript">JavaScript 面向对象简介</a>。</div>
+<div class="note">
+<p><strong>备注:</strong>关于 JavaScript 中面向对象编程更详细的信息,请参考 <a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript">JavaScript 面向对象简介</a>。</p>
+</div>
<p>在经典的面向对象语言中,对象是指数据和在这些数据上进行的操作的集合。与 C++ 和 Java 不同,JavaScript 是一种基于原型的编程语言,并没有 class 语句,而是把函数用作类。那么让我们来定义一个人名对象,这个对象包括人的姓和名两个域(field)。名字的表示有两种方法:“名 姓(First Last)”或“姓, 名(Last, First)”。使用我们前面讨论过的函数和对象概念,可以像这样完成定义:</p>
diff --git a/files/zh-cn/web/javascript/about_javascript/index.html b/files/zh-cn/web/javascript/about_javascript/index.html
index de4ef3f6e8..0f72075774 100644
--- a/files/zh-cn/web/javascript/about_javascript/index.html
+++ b/files/zh-cn/web/javascript/about_javascript/index.html
@@ -52,5 +52,6 @@ translation_of: Web/JavaScript/About_JavaScript
<dd>已经公布的 JavaScript 标准。</dd>
<dt><a href="/zh-CN/docs/Web/JavaScript/A_re-introduction_to_JavaScript" title="zh-CN/docs/A_re-introduction_to_JavaScript">重新认识 JavaScript</a></dt>
<dd><a href="/zh-CN/docs/Web/JavaScript/Guide" title="zh-CN/docs/JavaScript/Guide">JavaScript 指南</a> 和 <a href="/zh-CN/docs/Web/JavaScript/Reference" title="zh-CN/docs/JavaScript/Reference">JavaScript 参考</a>。</dd>
- <dt>JavaScript®是Oracle于美国和其他国家注册和拥有的商标。</dt>
</dl>
+
+<p>JavaScript®是Oracle于美国和其他国家注册和拥有的商标。</p>
diff --git a/files/zh-cn/web/javascript/closures/index.html b/files/zh-cn/web/javascript/closures/index.html
index 51bba7532c..065ac39a56 100644
--- a/files/zh-cn/web/javascript/closures/index.html
+++ b/files/zh-cn/web/javascript/closures/index.html
@@ -167,7 +167,7 @@ console.log(Counter.value()); /* logs 1 */
<p>这三个公共函数是共享同一个环境的闭包。多亏 JavaScript 的词法作用域,它们都可以访问 <code>privateCounter</code> 变量和 <code>changeBy</code> 函数。</p>
<div class="note">
-<p>你应该注意到我们定义了一个匿名函数,用于创建一个计数器。我们立即执行了这个匿名函数,并将他的值赋给了变量<code>Counter</code>。我们可以把这个函数储存在另外一个变量<code>makeCounter</code>中,并用他来创建多个计数器。</p>
+<p><strong>备注:</strong>你应该注意到我们定义了一个匿名函数,用于创建一个计数器。我们立即执行了这个匿名函数,并将他的值赋给了变量<code>Counter</code>。我们可以把这个函数储存在另外一个变量<code>makeCounter</code>中,并用他来创建多个计数器。</p>
</div>
<pre class="brush: js">var makeCounter = function() {
@@ -204,7 +204,7 @@ console.log(Counter2.value()); /* logs 0 */
<p>每次调用其中一个计数器时,通过改变这个变量的值,会改变这个闭包的词法环境。然而在一个闭包内对变量的修改,不会影响到另外一个闭包中的变量。</p>
<div class="note">
-<p>以这种方式使用闭包,提供了许多与面向对象编程相关的好处 —— 特别是数据隐藏和封装。</p>
+<p><strong>备注:</strong>以这种方式使用闭包,提供了许多与面向对象编程相关的好处 —— 特别是数据隐藏和封装。</p>
</div>
<h2 id="Creating_closures_in_loops_A_common_mistake">在循环中创建闭包:一个常见错误</h2>
diff --git a/files/zh-cn/web/javascript/data_structures/index.html b/files/zh-cn/web/javascript/data_structures/index.html
index a28fe01bda..c3a45e0acd 100644
--- a/files/zh-cn/web/javascript/data_structures/index.html
+++ b/files/zh-cn/web/javascript/data_structures/index.html
@@ -237,7 +237,7 @@ foo = true; // foo is a Boolean now
</table>
<div class="note">
-<p>注意:这些特性只有 JavaScript 引擎才用到,因此你不能直接访问它们。所以特性被放在两对方括号中,而不是一对。</p>
+<p><strong>备注:</strong>这些特性只有 JavaScript 引擎才用到,因此你不能直接访问它们。所以特性被放在两对方括号中,而不是一对。</p>
</div>
<h3 id="标准的_对象_和函数">"标准的" 对象, 和函数</h3>
diff --git a/files/zh-cn/web/javascript/equality_comparisons_and_sameness/index.html b/files/zh-cn/web/javascript/equality_comparisons_and_sameness/index.html
index 502870405e..d36a7e3aad 100644
--- a/files/zh-cn/web/javascript/equality_comparisons_and_sameness/index.html
+++ b/files/zh-cn/web/javascript/equality_comparisons_and_sameness/index.html
@@ -382,13 +382,12 @@ function attemptMutation(v)
<p>这里是一个会区别对待-0和+0的内置方法和操作符不完全列表:</p>
-<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators#-_.28Unary_Negation.29" title="/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators"><code>- (一元负)</code></a></p>
-
<dl>
+ <dt><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators#-_.28Unary_Negation.29" title="/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators"><code>- (一元负)</code></a></dt>
<dd>
<p>显而易见,对<code>0一元负操作得到</code><code>-0</code>。但表达式的抽象化可能在你没有意识到得情况下导致-0延续传播。例如当考虑下例时:</p>
- <pre class="brush:js language-js">let stoppingForce = obj.mass * -obj.velocity</pre>
+ <pre class="brush:js">let stoppingForce = obj.mass * -obj.velocity</pre>
<p>如果<code>obj.velocity</code>是<code>0</code> (或计算结果为<code>0</code>), <code>一个-0</code>就在上处产生并被赋值为<code>stoppingForce的值</code>.</p>
</dd>
diff --git a/files/zh-cn/web/javascript/eventloop/index.html b/files/zh-cn/web/javascript/eventloop/index.html
index bb8dd97448..9720de3eb0 100644
--- a/files/zh-cn/web/javascript/eventloop/index.html
+++ b/files/zh-cn/web/javascript/eventloop/index.html
@@ -21,7 +21,7 @@ translation_of: Web/JavaScript/EventLoop
<h3 id="可视化描述">可视化描述</h3>
-<p style="text-align: center;"><img alt="Stack, heap, queue" src="https://mdn.mozillademos.org/files/17124/The_Javascript_Runtime_Environment_Example.svg" style="height: 271px; width: 295px;"></p>
+<p><img alt="Stack, heap, queue" src="https://mdn.mozillademos.org/files/17124/The_Javascript_Runtime_Environment_Example.svg"></p>
<h3 id="栈">栈</h3>
@@ -77,7 +77,7 @@ console.log(bar(7)); // 返回 42</pre>
<p>下面的例子演示了这个概念(<code>setTimeout</code> 并不会在计时器到期之后直接执行):</p>
-<pre class="brush: js line-numbers language-js">const s = new Date().getSeconds();
+<pre class="brush: js">const s = new Date().getSeconds();
setTimeout(function() {
// 输出 "2",表示回调函数并没有在 500 毫秒之后立即执行
diff --git a/files/zh-cn/web/javascript/guide/control_flow_and_error_handling/index.html b/files/zh-cn/web/javascript/guide/control_flow_and_error_handling/index.html
index 4ec8d52e11..cc837aafb0 100644
--- a/files/zh-cn/web/javascript/guide/control_flow_and_error_handling/index.html
+++ b/files/zh-cn/web/javascript/guide/control_flow_and_error_handling/index.html
@@ -95,12 +95,13 @@ alert(x); // 输出的结果为 2
<p>不建议在条件表达式中使用赋值语句,因为在快速查阅代码时容易把它看成等值比较。例如,不要使用下面的代码:</p>
-<div class="blockIndicator warning">
-<p>   if(x = y){</p>
-
-<p> /*  语句  */</p>
-
-<p>}</p>
+<div class="warning">
+<p><strong>警告:</strong></p>
+<pre class="brush: js">
+ if(x = y){
+ /*  语句  */
+ }
+</pre>
</div>
<p>如果你需要在条件表达式中使用赋值,通常在赋值语句前后额外添加一对括号。例如: </p>
@@ -231,9 +232,8 @@ throw {toString: function() { return "I'm an object!"; } };
</pre>
-<div class="note"><strong>注意:</strong>你可以在抛出异常时声明一个对象。那你就可以在catch块中查询到对象的属性。
-
-
+<div class="note">
+ <p><strong>备注:</strong>你可以在抛出异常时声明一个对象。那你就可以在catch块中查询到对象的属性。</p>
</div>
<pre class="brush: js">// Create an object type UserException
@@ -406,7 +406,7 @@ catch (e) {
<li><em>settled:</em>Promise 处于 fulfilled 或 rejected 二者中的任意一个状态, 不会是 pending。</li>
</ul>
-<p><img alt="" src="https://mdn.mozillademos.org/files/8633/promises.png" style="height: 297px; width: 801px;"></p>
+<p><img alt="" src="https://mdn.mozillademos.org/files/8633/promises.png"></p>
<h3 id="通过_XHR_加载图片">通过 XHR 加载图片</h3>
diff --git a/files/zh-cn/web/javascript/guide/details_of_the_object_model/index.html b/files/zh-cn/web/javascript/guide/details_of_the_object_model/index.html
index 7df37741c4..17e15ee9bc 100644
--- a/files/zh-cn/web/javascript/guide/details_of_the_object_model/index.html
+++ b/files/zh-cn/web/javascript/guide/details_of_the_object_model/index.html
@@ -31,8 +31,8 @@ translation_of: Web/JavaScript/Guide/Details_of_the_Object_Model
<p>JavaScript 大体上与之类似,但并没有专门的<em>类定义</em>,你通过定义构造函数的方式来创建一系列有着特定初始值和方法的对象。任何JavaScript函数都可以被用作构造函数。你也可以使用 <code>new</code> 操作符来创建一个新对象。</p>
-<div class="blockIndicator note">
-<p><strong>提示:</strong>在ES6中引入了 <a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Classes">类定义</a> ,但它实际上是已有的原型继承方式的语法糖而已,并没有引入新的面向对象继承模型。</p>
+<div class="note">
+<p><strong>备注:</strong>在ES6中引入了 <a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Classes">类定义</a> ,但它实际上是已有的原型继承方式的语法糖而已,并没有引入新的面向对象继承模型。</p>
</div>
<h3 id="子类和继承">子类和继承</h3>
@@ -227,7 +227,7 @@ public class Engineer extends WorkerBee {
<p>使用这些定义,您可以创建这些对象的实例,以获取其属性的默认值。下图说明了如何使用这些 JavaScript 定义创建新对象并显示新对象的属性值。</p>
<div class="note">
-<p><strong>提示:</strong>实例在基于类的语言中具有特定的技术含义。在这些语言中,一个实例是一个类的单独实例化,与一个类本质上是不同的。在 JavaScript 中,“实例”没有这个技术含义,因为JavaScript在类和实例之间不存在这样的区别。然而,在讨论 JavaScript 时,可以非正式地使用“实例”来表示使用特定构造函数创建的对象。 所以,在这个例子中,你可以非正式地说<code>jane</code> 是 <code>Engineer</code>的一个实例。同样,虽然术语 parent,child,ancestor 和 descendant 在 JavaScript 中没有正式含义;你可以非正式地使用它们来引用原型链中较高或更低的对象。</p>
+<p><strong>备注:</strong>实例在基于类的语言中具有特定的技术含义。在这些语言中,一个实例是一个类的单独实例化,与一个类本质上是不同的。在 JavaScript 中,“实例”没有这个技术含义,因为JavaScript在类和实例之间不存在这样的区别。然而,在讨论 JavaScript 时,可以非正式地使用“实例”来表示使用特定构造函数创建的对象。 所以,在这个例子中,你可以非正式地说<code>jane</code> 是 <code>Engineer</code>的一个实例。同样,虽然术语 parent,child,ancestor 和 descendant 在 JavaScript 中没有正式含义;你可以非正式地使用它们来引用原型链中较高或更低的对象。</p>
</div>
<h3 id="用简单的定义创建对象">用简单的定义创建对象</h3>
@@ -310,14 +310,14 @@ mark.projects = ["navigator"];</pre>
<p>只要 JavaScript 执行了该语句,则 <code>mark</code> 对象也将具有 <code>specialty</code> 属性,其值为 <code>"none"</code>。下图则表示了在 <code>Employee</code> 原型中添加该属性,然后在 <code>Engineer</code> 的原型中重载该属性的效果。</p>
-<p><img alt="" class="internal" src="/@api/deki/files/4422/=figure8.4.png" style="height: 519px; width: 833px;"><br>
+<p><img alt="" class="internal" src="/@api/deki/files/4422/=figure8.4.png"><br>
<small><strong>添加属性</strong></small></p>
<h2 id="more_flexible_constructors">更灵活的构造器</h2>
<p>到目前为止,本文所展示的构造函数都不能让你在创建新实例时为其制定属性值。其实我们也可以像 Java 一样,为构造器提供参数以初始化实例的属性值。下图展示了一种实现方式。</p>
-<p><img alt="" class="internal" src="/@api/deki/files/4423/=figure8.5.png" style="height: 481px; width: 1012px;"><br>
+<p><img alt="" class="internal" src="/@api/deki/files/4423/=figure8.5.png"><br>
<small><strong>Specifying properties in a constructor, take 1</strong></small></p>
<p>下面的表格中罗列了这些对象在 Java 和 JavaScript 中的定义。</p>
@@ -420,7 +420,7 @@ public class Engineer extends WorkerBee {
<p>JavaScript 的逻辑或操作符(<code>||</code>)会对第一个参数进行判断。如果该参数值运算后结果为真,则操作符返回该值。否则,操作符返回第二个参数的值。因此,这行代码首先检查 <code>name</code> 是否是对<code>name</code> 属性有效的值。如果是,则设置其为 <code>this.name</code> 的值。否则,设置 <code>this.name</code> 的值为空的字符串。尽管这种用法乍看起来有些费解,为了简洁起见,本章将使用这种习惯用法。</p>
<div class="note">
-<p><strong>提示:</strong>如果调用构造函数时,指定了可以转换为 <code><code>false</code></code> 的参数(比如<code>0</code>和空字符串),结果可能出乎调用者意料。此时,将使用默认值(译注:不是指定的参数值 0 和 "")。</p>
+<p><strong>备注:</strong>如果调用构造函数时,指定了可以转换为 <code><code>false</code></code> 的参数(比如<code>0</code>和空字符串),结果可能出乎调用者意料。此时,将使用默认值(译注:不是指定的参数值 0 和 "")。</p>
</div>
<p>使用这些定义,当创建对象的实例时,可以为本地定义的属性指定值。你可以使用以下语句创建一个新的<code>Engineer</code>:</p>
@@ -440,7 +440,7 @@ jane.machine == "belau"
<p>到目前为止,构造函数已经能够创建一个普通对象,然后为新对象指定本地的属性和属性值。您还可以通过直接调用原型链上的更高层次对象的构造函数,让构造器添加更多的属性。下图即实现了这一功能。</p>
-<p><img alt="" class="internal" src="/@api/deki/files/4430/=figure8.6.png" style="height: 534px; width: 1063px;"><br>
+<p><img alt="" class="internal" src="/@api/deki/files/4430/=figure8.6.png"><br>
<small><strong>Specifying properties in a constructor, take 2</strong></small></p>
<p>我们来详细看一下这些定义。这是<code>Engineer</code>构造函数的新定义:</p>
@@ -636,7 +636,9 @@ chris.__proto__.__proto__.__proto__.__proto__.__proto__ == null;
}
</pre>
-<div class="note"><strong>Note:</strong> 在上面的实现中,检查对象的类型是否为 "xml" 的目的在于解决新近版本的 JavaScript 中表达 XML 对象的特异之处。如果您想了解其中琐碎细节,可以参考 {{ bug(634150) }}。</div>
+<div class="note">
+<p><strong>备注:</strong> 在上面的实现中,检查对象的类型是否为 "xml" 的目的在于解决新近版本的 JavaScript 中表达 XML 对象的特异之处。如果您想了解其中琐碎细节,可以参考 {{ bug(634150) }}。</p>
+</div>
<div>使用上面定义的 instanceOf 函数,这些表达式为真:</div>
diff --git a/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html b/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html
index be9944cc48..20ac54e8b8 100644
--- a/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html
+++ b/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html
@@ -136,7 +136,7 @@ translation_of: Web/JavaScript/Guide/Expressions_and_Operators
<p>对于更复杂的赋值,<a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment">解构赋值</a>语法是一个能从数组或对象对应的数组结构或对象字面量里提取数据的 Javascript 表达式。</p>
-<pre class="brush: js line-numbers language-js">var foo = ["one", "two", "three"];
+<pre class="brush: js">var foo = ["one", "two", "three"];
// 不使用解构
var one = foo[0];
@@ -150,7 +150,7 @@ var [one, two, three] = foo;</pre>
<p><a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Comparison_Operators">比较运算符</a>比较它的操作数并返回一个基于表达式是否为真的逻辑值。操作数可以是数字,字符串,逻辑,对象值。字符串比较是基于标准的字典顺序,使用Unicode值。在多数情况下,如果两个操作数不是相同的类型, JavaScript 会尝试转换它们为恰当的类型来比较。这种行为通常发生在数字作为操作数的比较。类型转换的例外是使用 <code>===</code> 和 <code>!==</code> 操作符,它们会执行严格的相等和不相等比较。这些运算符不会在检查相等之前转换操作数的类型。下面的表格描述了该示例代码中的各比较运算符</p>
-<pre class="brush: js line-numbers language-js">var var1 = 3;
+<pre class="brush: js">var var1 = 3;
var var2 = 4;</pre>
<table class="standard-table">
@@ -217,7 +217,7 @@ var var2 = 4;</pre>
</table>
<div class="note">
-<p><strong>注意: </strong>(<strong>=&gt;</strong>) 不是运算符,而是<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions">箭头函数</a>的标记符号 。</p>
+<p><strong>备注:</strong>(<strong>=&gt;</strong>) 不是运算符,而是<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions">箭头函数</a>的标记符号 。</p>
</div>
<h3 id="算术运算符">算术运算符</h3>
@@ -376,12 +376,10 @@ var var2 = 4;</pre>
<li>操作数被转换为32bit整數,以位序列(0和1组成)表示.若超過32bits,則取低位32bit,如下所示:</li>
</ul>
-<dl>
- <dt>
- <pre><code>Before: 11100110111110100000000000000110000000000001
-After: 10100000000000000110000000000001</code></pre>
- </dt>
-</dl>
+<pre>
+ <code>Before: 11100110111110100000000000000110000000000001</code>
+ <code>After: 10100000000000000110000000000001</code>
+</pre>
<ul>
<li>第一个操作数的每一位都与第二个操作数的对应位组对: 第一位对应第一位,第二位对应第二位,以此类推.</li>
@@ -551,7 +549,7 @@ var n3 = !"Cat"; // !t returns false
<p>例如,</p>
-<pre class="brush: js line-numbers language-js">console.log("my " + "string"); // console logs the string "my string".</pre>
+<pre class="brush: js">console.log("my " + "string"); // console logs the string "my string".</pre>
<p>简写操作符 <code>+=</code> 也可以用来拼接字符串,例如:</p>
@@ -719,11 +717,11 @@ void expression
<p>如下创建了一个超链接文本,当用户单击该文本时,不会有任何效果。</p>
-<pre class="brush: html line-numbers language-html">&lt;a href="javascript:void(0)"&gt;Click here to do nothing&lt;/a&gt;</pre>
+<pre class="brush: html">&lt;a href="javascript:void(0)"&gt;Click here to do nothing&lt;/a&gt;</pre>
<p>下面的代码创建了一个超链接,当用户单击它时,提交一个表单。</p>
-<pre class="brush: html line-numbers language-html">&lt;a href="javascript:void(document.form.submit())"&gt;
+<pre class="brush: html">&lt;a href="javascript:void(document.form.submit())"&gt;
Click here to submit&lt;/a&gt;</pre>
<h3 id="关系操作符">关系操作符</h3>
@@ -913,7 +911,7 @@ this.propertyName
<p>分组操作符()控制了表达式中计算的优先级. 举例来说, 你可以改变先乘除后加减的顺序,转而先计算加法。</p>
-<pre class="brush:js line-numbers language-js">var a = 1;
+<pre class="brush:js">var a = 1;
var b = 2;
var c = 3;
@@ -941,7 +939,7 @@ a * c + b * c // 9</pre>
<p>Comprehensions特性被许多编程语言所采用,该特性能够使你快速地通过一个已有的数组来创建出一个新的数组,比如:</p>
-<pre class="brush:js line-numbers language-js">[for (i of [ 1, 2, 3 ]) i*i ];
+<pre class="brush:js">[for (i of [ 1, 2, 3 ]) i*i ];
// [ 1, 4, 9 ]
var abc = [ "A", "B", "C" ];
diff --git a/files/zh-cn/web/javascript/guide/functions/index.html b/files/zh-cn/web/javascript/guide/functions/index.html
index 73a1efbdc4..e37f71e8a8 100644
--- a/files/zh-cn/web/javascript/guide/functions/index.html
+++ b/files/zh-cn/web/javascript/guide/functions/index.html
@@ -85,7 +85,7 @@ console.log(factorial(3));
<p>下面的代码:</p>
-<pre class="brush: js line-numbers language-js">function map(f, a) {
+<pre class="brush: js">function map(f, a) {
let result = []; // 创建一个数组
let i; // 声明一个值,用来循环
for (i = 0; i != a.length; i++)
@@ -133,10 +133,10 @@ function square(n) { return n*n }
<p>函数域是指函数声明时的所在的地方,或者函数在顶层被声明时指整个程序。</p>
<div class="note">
-<p><strong>提示:</strong>注意只有使用如上的语法形式(即 <code>function funcName(){}</code>)才可以。而下面的代码是无效的。就是说,函数提升仅适用于函数声明,而不适用于函数表达式。</p>
+<p><strong>备注:</strong>注意只有使用如上的语法形式(即 <code>function funcName(){}</code>)才可以。而下面的代码是无效的。就是说,函数提升仅适用于函数声明,而不适用于函数表达式。</p>
</div>
-<pre class="brush: js example-bad line-numbers language-js">console.log(square); // square is hoisted with an initial value undefined.
+<pre class="brush: js example-bad">console.log(square); // square is hoisted with an initial value undefined.
console.log(square(5)); // Uncaught TypeError: square is not a function
const square = function (n) {
return n * n;
@@ -167,7 +167,7 @@ e = factorial(5); // 120赋值给e
<p>还有其它的方式来调用函数。常见的一些情形是某些地方需要动态调用函数,或者函数的实参数量是变化的,或者调用函数的上下文需要指定为在运行时确定的特定对象。显然,函数本身就是对象,因此这些对象也有方法(参考{{jsxref("Function")}} )。作为此中情形之一,{{jsxref("Function.apply", "apply()")}}方法可以实现这些目的。</p>
-<h2 class="deki-transform" id="函数作用域">函数作用域</h2>
+<h2 id="函数作用域">函数作用域</h2>
<p>在函数内定义的变量不能在函数之外的任何地方访问,因为变量仅仅在该函数的域的内部有定义。相对应的,一个函数可以访问定义在其范围内的任何变量和函数。换言之,定义在全局域中的函数可以访问所有定义在全局域中的变量。在另一个函数中定义的函数也可以访问在其父函数中定义的所有变量和父函数有权访问的任何其他变量。</p>
@@ -442,8 +442,8 @@ pet.getName(); // Oliver
getCode(); // Returns the secret code
</pre>
-<div class="blockIndicator note">
-<p>尽管有上述优点,使用闭包时仍然要小心避免一些陷阱。如果一个闭包的函数定义了一个和外部函数的某个变量名称相同的变量,那么这个闭包将无法引用外部函数的这个变量。</p>
+<div class="note">
+<p><strong>备注:</strong>尽管有上述优点,使用闭包时仍然要小心避免一些陷阱。如果一个闭包的函数定义了一个和外部函数的某个变量名称相同的变量,那么这个闭包将无法引用外部函数的这个变量。</p>
<pre class="brush: js">var createPet = function(name) { // Outer function defines a variable called "name"
return {
@@ -468,7 +468,7 @@ getCode(); // Returns the secret code
<p>例如,设想有一个用来连接字符串的函数。唯一事先确定的参数是在连接后的字符串中用来分隔各个连接部分的字符(译注:比如例子里的分号“;”)。该函数定义如下:</p>
-<pre class="brush: js line-numbers language-js">function myConcat(separator) {
+<pre class="brush: js">function myConcat(separator) {
var result = ''; // 把值初始化成一个字符串,这样就可以用来保存字符串了!!
var i;
// iterate through arguments
@@ -490,7 +490,9 @@ myConcat("; ", "elephant", "giraffe", "lion", "cheetah");
myConcat(". ", "sage", "basil", "oregano", "pepper", "parsley");
</pre>
-<div class="note"><strong>提示:</strong><code>arguments</code>变量只是 <em>”</em><strong>类数组对象</strong>“,并不是一个数组。称其为类数组对象是说它有一个索引编号和<code>length</code>属性。尽管如此,它并不拥有全部的Array对象的操作方法。</div>
+<div class="note">
+<p><strong>备注:</strong><code>arguments</code>变量只是 <em>”</em><strong>类数组对象</strong>“,并不是一个数组。称其为类数组对象是说它有一个索引编号和<code>length</code>属性。尽管如此,它并不拥有全部的Array对象的操作方法。</p>
+</div>
<p>更多信息请阅读JavaScript参考里的{{jsxref("Function")}}一文。</p>
@@ -544,7 +546,7 @@ console.log(arr); // [2, 4, 6]</pre>
<p>在一些函数模式中,更简洁的函数很受欢迎。对比一下:</p>
-<pre class="brush: js line-numbers language-js">var a = [
+<pre class="brush: js">var a = [
"Hydrogen",
"Helium",
"Lithium",
@@ -563,7 +565,7 @@ console.log(a3); // logs [ 8, 6, 7, 9 ]</pre>
<p>在箭头函数出现之前,每一个新函数都重新定义了自己的 <a href="/zh-CN/docs/Web/JavaScript/Reference/Operators/this">this</a> 值(在构造函数中是一个新的对象;在严格模式下是未定义的;在作为“对象方法”调用的函数中指向这个对象;等等)。以面向对象的编程风格,这样着实有点恼人。</p>
-<pre class="brush: js line-numbers language-js">function Person() {
+<pre class="brush: js">function Person() {
// 构造函数Person()将`this`定义为自身
this.age = 0;
@@ -579,7 +581,7 @@ var p = new Person();</pre>
<p>在ECMAScript 3/5里,通过把<code>this</code>的值赋值给一个变量可以修复这个问题。</p>
-<pre class="brush: js line-numbers language-js">function Person() {
+<pre class="brush: js">function Person() {
var self = this; // 有的人习惯用`that`而不是`self`,
  // 无论你选择哪一种方式,请保持前后代码的一致性
self.age = 0;
@@ -594,7 +596,7 @@ var p = new Person();</pre>
<p>箭头函数捕捉闭包上下文的<code>this</code>值,所以下面的代码工作正常。</p>
-<pre class="brush: js line-numbers language-js">function Person(){
+<pre class="brush: js">function Person(){
this.age = 0;
setInterval(() =&gt; {
diff --git a/files/zh-cn/web/javascript/guide/grammar_and_types/index.html b/files/zh-cn/web/javascript/guide/grammar_and_types/index.html
index 7fb7d70567..4ac46cbc48 100644
--- a/files/zh-cn/web/javascript/guide/grammar_and_types/index.html
+++ b/files/zh-cn/web/javascript/guide/grammar_and_types/index.html
@@ -357,7 +357,7 @@ console.log(a.length); // 1
console.log(a[0]); // 3</pre>
<div class="note">
-<p><strong>注意</strong><strong> </strong>这里的数组字面值也是一种对象初始化器。参考<a href="https://developer.mozilla.org/zh-CN/docs/JavaScript/Guide/Working_with_Objects#Using_Object_Initializers" title="zh-CN/docs/JavaScript/Guide/Working with Objects#Using Object Initializers">对象初始化器的使用</a>。</p>
+<p><strong>备注:</strong><strong> </strong>这里的数组字面值也是一种对象初始化器。参考<a href="https://developer.mozilla.org/zh-CN/docs/JavaScript/Guide/Working_with_Objects#Using_Object_Initializers" title="zh-CN/docs/JavaScript/Guide/Working with Objects#Using Object Initializers">对象初始化器的使用</a>。</p>
</div>
<p>若在顶层(全局)脚本里用字面值创建数组,JavaScript语言将会在每次对包含该数组字面值的表达式求值时解释该数组。另一方面,在函数中使用的数组,将在每次调用函数时都会被创建一次。</p>
@@ -376,7 +376,7 @@ console.log(a[0]); // 3</pre>
<p>如果你在元素列表的尾部添加了一个逗号,它将会被忽略。在下面的例子中,数组的长度是3,并不存在myList[3]这个元素(译注:这是指数组的第4个元素噢,作者是在帮大家复习数组元素的排序命名方法)。元素列表中其它所有的逗号都表示一个新元素(的开始)。</p>
<div class="note">
-<p><strong>注意:</strong>尾部的逗号在早期版本的浏览器中会产生错误,因而编程时的最佳实践方式就是移除它们。</p>
+<p><strong>备注:</strong>尾部的逗号在早期版本的浏览器中会产生错误,因而编程时的最佳实践方式就是移除它们。</p>
</div>
<p>(译注:而“现代”的浏览器似乎鼓励这种方式,这也很好解释原因。尾部逗号可以减少向数组的最后添加元素时,因为忘记为这最后一个元素加逗号 所造成的错误。)</p>
@@ -495,7 +495,7 @@ console.log(unusualPropertyNames["!"]); // Bang!</pre>
<p>在ES2015,对象字面值扩展支持在创建时设置原型,简写了 foo: foo 形式的属性赋值,方法定义,支持父方法调用,以及使用表达式动态计算属性名。总之,这些也使对象字面值和类声明更加紧密地联系起来,让基于对象的设计从这些便利中更加受益。</p>
-<pre class="brush: js line-numbers language-js">var obj = {
+<pre class="brush: js">var obj = {
// __proto__
__proto__: theProtoObj,
// Shorthand for ‘handler: handler’
@@ -523,7 +523,7 @@ console.log(foo["2"]); // two</pre>
<p>一个正则表达式是字符被斜线(译注:正斜杠“/”)围成的表达式。下面是一个正则表达式文字的一个例子。</p>
-<pre class="brush: js line-numbers language-js">var re = /ab+c/;</pre>
+<pre class="brush: js">var re = /ab+c/;</pre>
<h3 id="字符串字面量_String_literals">字符串字面量 (String literals)</h3>
diff --git a/files/zh-cn/web/javascript/guide/index.html b/files/zh-cn/web/javascript/guide/index.html
index 7917823730..419d7d24e7 100644
--- a/files/zh-cn/web/javascript/guide/index.html
+++ b/files/zh-cn/web/javascript/guide/index.html
@@ -10,126 +10,189 @@ translation_of: Web/JavaScript/Guide
<p>JavaScript 指南向你介绍如何使用 <a href="/zh-CN/docs/Web/JavaScript">JavaScript</a>,并且给出了语言概述。如果你需要了解某些语言特性的详细信息,请参阅 <a href="/zh-CN/docs/Web/JavaScript/Reference">JavaScript 参考</a>。</p>
-<h2 id="章节">章节</h2>
-
-<p>本指南分为以下章节:</p>
-
-<ul class="card-grid">
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction">介绍</a>
-
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#What_is_JavaScript.3F">关于这份指南</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#什么是_JavaScript">关于 JavaScript</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#JavaScript_and_Java">JavaScript 与 Java</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#JavaScript_and_the_ECMAScript_Specification">ECMAScript</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#Getting_started_with_JavaScript">工具</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#Hello_world">Hello World</a></p>
- </li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types">语法与数据类型</a>
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#基础">基本语法与注释</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#声明">声明</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#变量的作用域">变量作用域</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#变量提升">变量提升</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#数据结构和类型">数据结构和类型</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#字面量_(Literals)">字面量</a></p>
- </li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Control_flow_and_error_handling">控制流与错误处理</a>
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#if...else_语句"><code>if...else</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#switch_语句"><code>switch</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#异常处理语句"><code>try</code>/<code>catch</code>/<code>throw</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#使用Error对象">Error 对象</a></p>
- </li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration">循环与迭代</a>
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#for_语句"><code>for</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#while_语句"><code>while</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#do...while_语句"><code>do...while</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#break_语句"><code>break</code></a>/<a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#continue_语句"><code>continue</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#for...in_语句"><code>for..in</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#for...of_语句"><code>for..of</code></a></p>
- </li>
+<h2 id="介绍">介绍</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction">介绍</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#What_is_JavaScript.3F">关于这份指南</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#什么是_JavaScript">关于 JavaScript</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#JavaScript_and_Java">JavaScript 与 Java</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#JavaScript_and_the_ECMAScript_Specification">ECMAScript</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#Getting_started_with_JavaScript">工具</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Introduction#Hello_world">Hello World</a></li>
+</ul>
+
+<h2 id="语法与数据类型">语法与数据类型</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types">语法与数据类型</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#基础">基本语法与注释</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#声明">声明</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#变量的作用域">变量作用域</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#变量提升">变量提升</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#数据结构和类型">数据结构和类型</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#字面量_(Literals)">字面量</a></li>
+</ul>
+
+<h2 id="控制流与错误处理">控制流与错误处理</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Control_flow_and_error_handling">控制流与错误处理</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#if...else_语句"><code>if...else</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#switch_语句"><code>switch</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#异常处理语句"><code>try</code>/<code>catch</code>/<code>throw</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#使用Error对象">Error 对象</a></li>
+</ul>
+
+<h2 id="循环与迭代">循环与迭代</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration">循环与迭代</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#for_语句"><code>for</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#while_语句"><code>while</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#do...while_语句"><code>do...while</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#break_语句"><code>break</code></a>/<a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#continue_语句"><code>continue</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#for...in_语句"><code>for..in</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration#for...of_语句"><code>for..of</code></a></li>
+</ul>
+
+<h2 id="函数">函数</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Functions">函数</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#定义函数">定义函数</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#调用函数">调用函数</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#函数作用域">函数作用域</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#闭包">闭包</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#使用_arguments_对象">arguments 对象</a> 和 <a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#函数参数">参数</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#箭头函数">箭头函数</a></li>
+</ul>
+
+<h2 id="表达式和运算符">表达式和运算符</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators">表达式和运算符</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#赋值运算符(Assignment_operators)">赋值</a> &amp; </li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#比较运算符(Comparison_operators)">比较</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#算术运算符(Arithmetic_operators)">算术运算符</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#位运算符(Bitwise_operators)">位运算</a> &amp; <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#逻辑运算符(Logical_operators)">逻辑运算符</a></li></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#conditional_operator">条件(三元)运算符</a></li>
+</ul>
+
+<h2 id="数字与日期">数字与日期</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Numbers_and_dates">数字与日期</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/WJavaScript/概述:Guide/Numbers_and_dates#数字"><code>Number</code> 字面量</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Numbers_and_dates#数字对象"><code>Number</code> 对象</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Numbers_and_dates#数学对象(Math)"><code>Math</code> 对象</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Numbers_and_dates#日期对象"><code>Date</code> 对象</a></li></li>
+</ul>
+
+<h2 id="文本格式化">文本格式化</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Text_formatting">文本格式化</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Text_formatting#字符串">字符串字面量</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Text_formatting#字符串对象">字符串对象</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Text_formatting#多行模板字符串">模版字面量</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Text_formatting#国际化">国际化</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Regular_Expressions">正则表达式</a></li>
+</ul>
+
+<h2 id="索引集合">索引集合</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Indexed_collections">索引集合</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Indexed_collections#map%E6%95%B0%E7%BB%84">数组</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Indexed_collections#类型化数组(Typed_Arrays_)">类型数组</a></li>
</ul>
-<ul class="card-grid">
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Functions">函数</a>
-
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#定义函数">定义函数</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#调用函数">调用函数</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#函数作用域">函数作用域</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#闭包">闭包</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#使用_arguments_对象">arguments 对象</a> 和 <a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#函数参数">参数</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Functions#箭头函数">箭头函数</a></p>
- </li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators">表达式和运算符</a>
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#赋值运算符(Assignment_operators)">赋值</a> &amp; <a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#比较运算符(Comparison_operators)">比较</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#算术运算符(Arithmetic_operators)">算术运算符</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#位运算符(Bitwise_operators)">位运算</a> &amp; <a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#逻辑运算符(Logical_operators)">逻辑运算符</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Expressions_and_Operators#conditional_operator">条件(三元)运算符</a></p>
- </li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Numbers_and_dates">数字与日期</a> <a href="/zh-CN/docs/Web/JavaScript/Guide/Numbers_and_dates#数字"><code>Number</code> 字面量</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Numbers_and_dates#数字对象"><code>Number</code> 对象</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Numbers_and_dates#数学对象(Math)"><code>Math</code> 对象</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Numbers_and_dates#日期对象"><code>Date</code> 对象</a></li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Text_formatting">文本格式化</a>
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Text_formatting#字符串">字符串字面量</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Text_formatting#字符串对象">字符串对象</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Text_formatting#多行模板字符串">模版字面量</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Text_formatting#国际化">国际化</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Regular_Expressions">正则表达式</a></p>
- </li>
+<h2 id="带键集合">带键集合</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Keyed_collections">带键集合</a></p>
+<p>
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Keyed_collections#Map对象"><code>Map</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Keyed_collections#WeakMap对象"><code>WeakMap</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Keyed_collections#Set对象"><code>Set</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Keyed_collections#WeakSet对象"><code>WeakSet</code></a></li>
</ul>
-<ul class="card-grid">
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Indexed_collections">索引集合</a>
-
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Indexed_collections#map%E6%95%B0%E7%BB%84">数组</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Indexed_collections#类型化数组(Typed_Arrays_)">类型数组</a></p>
- </li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Keyed_collections">带键集合</a>
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Keyed_collections#Map对象"><code>Map</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Keyed_collections#WeakMap对象"><code>WeakMap</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Keyed_collections#Set对象"><code>Set</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Keyed_collections#WeakSet对象"><code>WeakSet</code></a></p>
- </li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects">处理对象</a>
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects#%E5%AF%B9%E8%B1%A1%E5%92%8C%E5%B1%9E%E6%80%A7_2">对象和属性</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects#%E5%88%9B%E5%BB%BA%E6%96%B0%E5%AF%B9%E8%B1%A1">创建对象</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects#%E5%AE%9A%E4%B9%89%E6%96%B9%E6%B3%95">定义方法</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects#%E5%AE%9A%E4%B9%89_getters_%E4%B8%8E_setters">getter 和 setter</a></p>
- </li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Details_of_the_Object_Model">对象模型的细节</a>
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Details_of_the_Object_Model#class-based_vs_prototype-based_languages">基于原型的面向对象编程</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Details_of_the_Object_Model#%E5%88%9B%E5%BB%BA%E5%B1%82%E7%BA%A7%E7%BB%93%E6%9E%84">创建对象层次结构</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Details_of_the_Object_Model#%E5%AF%B9%E8%B1%A1%E7%9A%84%E5%B1%9E%E6%80%A7">继承</a></p>
- </li>
+<h2 id="处理对象">处理对象</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects">处理对象</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects#%E5%AF%B9%E8%B1%A1%E5%92%8C%E5%B1%9E%E6%80%A7_2">对象和属性</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects#%E5%88%9B%E5%BB%BA%E6%96%B0%E5%AF%B9%E8%B1%A1">创建对象</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects#%E5%AE%9A%E4%B9%89%E6%96%B9%E6%B3%95">定义方法</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects#%E5%AE%9A%E4%B9%89_getters_%E4%B8%8E_setters">getter 和 setter</a></li>
</ul>
-<ul class="card-grid">
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises">Promises</a>
-
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises#%E7%BA%A6%E5%AE%9A">约定</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises#%E9%93%BE%E5%BC%8F%E8%B0%83%E7%94%A8">链式调用</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises#%E9%94%99%E8%AF%AF%E4%BC%A0%E9%80%92">错误传递</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises#%E7%BB%84%E5%90%88">组合</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises#%E6%97%B6%E5%BA%8F">时序</a></p>
- </li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Iterators_and_Generators">迭代器与生成器</a>
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Iterators_and_Generators#%E8%BF%AD%E4%BB%A3%E5%99%A8">迭代器</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Iterators_and_Generators#%E7%94%9F%E6%88%90%E5%99%A8">生成器</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Iterators_and_Generators#%E5%8F%AF%E8%BF%AD%E4%BB%A3%E5%AF%B9%E8%B1%A1">可迭代对象</a></p>
- </li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Meta_programming">元编程</a>
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Meta_programming#%E4%BB%A3%E7%90%86"><code>Proxy</code></a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Meta_programming#%E5%8F%A5%E6%9F%84%E5%92%8C%E9%99%B7%E9%98%B1">Handlers 和 traps</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Meta_programming#%E6%92%A4%E9%94%80_Proxy">撤销 Proxy</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Meta_programming#%E5%8F%8D%E5%B0%84"><code>Reflect</code></a></p>
- </li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Modules">JavaScript 模块</a>
- <p><a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Exporting_module_features">导出模块</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Importing_features_into_your_script">导入模块</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Default_exports_versus_named_exports">默认导出</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Renaming_imports_and_exports">重命名模块</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Aggregating_modules">合并模块</a><br>
- <a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Dynamic_module_loading">动态加载模块</a></p>
- </li>
+<h2 id="对象模型的细节">对象模型的细节</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Details_of_the_Object_Model">对象模型的细节</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Details_of_the_Object_Model#class-based_vs_prototype-based_languages">基于原型的面向对象编程</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Details_of_the_Object_Model#%E5%88%9B%E5%BB%BA%E5%B1%82%E7%BA%A7%E7%BB%93%E6%9E%84">创建对象层次结构</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Details_of_the_Object_Model#%E5%AF%B9%E8%B1%A1%E7%9A%84%E5%B1%9E%E6%80%A7">继承</a></li>
</ul>
+<h2 id="Promises">Promises</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises">Promises</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises#%E7%BA%A6%E5%AE%9A">约定</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises#%E9%93%BE%E5%BC%8F%E8%B0%83%E7%94%A8">链式调用</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises#%E9%94%99%E8%AF%AF%E4%BC%A0%E9%80%92">错误传递</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises#%E7%BB%84%E5%90%88">组合</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises#%E6%97%B6%E5%BA%8F">时序</a></li>
+</ul>
+
+<h2 id="迭代器与生成器">迭代器与生成器</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Iterators_and_Generators">迭代器与生成器</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Iterators_and_Generators#%E8%BF%AD%E4%BB%A3%E5%99%A8">迭代器</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Iterators_and_Generators#%E7%94%9F%E6%88%90%E5%99%A8">生成器</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Iterators_and_Generators#%E5%8F%AF%E8%BF%AD%E4%BB%A3%E5%AF%B9%E8%B1%A1">可迭代对象</a></li>
+</ul>
+
+<h2 id="元编程">元编程</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Meta_programming">元编程</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Meta_programming#%E4%BB%A3%E7%90%86"><code>Proxy</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Meta_programming#%E5%8F%A5%E6%9F%84%E5%92%8C%E9%99%B7%E9%98%B1">Handlers 和 traps</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Meta_programming#%E6%92%A4%E9%94%80_Proxy">撤销 Proxy</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Meta_programming#%E5%8F%8D%E5%B0%84"><code>Reflect</code></a></li>
+</ul>
+
+<h2 id="JavaScript 模块">JavaScript 模块</h2>
+
+<p>概述:<a href="/zh-CN/docs/Web/JavaScript/Guide/Modules">JavaScript 模块</a></p>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Exporting_module_features">导出模块</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Importing_features_into_your_script">导入模块</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Default_exports_versus_named_exports">默认导出</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Renaming_imports_and_exports">重命名模块</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Aggregating_modules">合并模块</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/Modules#Dynamic_module_loading">动态加载模块</a></li>
+ </ul>
+
<p>{{Next("Web/JavaScript/Guide/Introduction")}}</p>
diff --git a/files/zh-cn/web/javascript/guide/indexed_collections/index.html b/files/zh-cn/web/javascript/guide/indexed_collections/index.html
index 53e12083af..5e29a8d49e 100644
--- a/files/zh-cn/web/javascript/guide/indexed_collections/index.html
+++ b/files/zh-cn/web/javascript/guide/indexed_collections/index.html
@@ -39,7 +39,7 @@ arr.length = arrayLength;
</pre>
<div class="note">
-<p><strong>注意: </strong>以上代码,数组长度(arrayLength)必须为一个数字(Number)。否则,将会创建一个只有单个(所输入的)元素的数组。 调用 <code>arr.length</code> 会返回数组长度,但是数组实际上包含了空的(<code>undefined</code>)元素。 因此在数组上使用 <code><a href="/en-US/docs/Web/JavaScript/Reference/Statements/for...in">for...in</a></code> 循环,将不会返回任何的值 。</p>
+<p><strong>备注:</strong>以上代码,数组长度(arrayLength)必须为一个数字(Number)。否则,将会创建一个只有单个(所输入的)元素的数组。 调用 <code>arr.length</code> 会返回数组长度,但是数组实际上包含了空的(<code>undefined</code>)元素。 因此在数组上使用 <code><a href="/en-US/docs/Web/JavaScript/Reference/Statements/for...in">for...in</a></code> 循环,将不会返回任何的值 。</p>
</div>
<p>除了如上所示创建新定义的变量,数组(array)也可以作为一个属性(property)分配给一个新的或者已存在的对象(object):</p>
@@ -82,7 +82,7 @@ emp[2] = "August West";
</pre>
<div class="note">
-<p><strong>注意:</strong>如果你在以上代码中给数组操作符的是一个非整形数值,那么将作为一个代表数组的对象的属性(property)创建,而非作为数组的元素。</p>
+<p><strong>备注:</strong>如果你在以上代码中给数组操作符的是一个非整形数值,那么将作为一个代表数组的对象的属性(property)创建,而非作为数组的元素。</p>
</div>
<pre class="brush: js">var arr = [];
@@ -107,7 +107,7 @@ var myArray = ["Mango", "Apple", "Orange"]
<p>你可以用 <code>myArray[0]</code>引用第一个元素,<code>myArray[1]</code>引用第二个元素。元素的索引是从<code>0</code>开始的。</p>
<div class="note">
-<p><strong>注意:</strong>数组操作符(方括号 [ ])也可以用来访问数组的属性(在 JavaScript 中,数组也是对象)。例如:</p>
+<p><strong>备注:</strong>数组操作符(方括号 [ ])也可以用来访问数组的属性(在 JavaScript 中,数组也是对象)。例如:</p>
</div>
<pre class="brush: js">var arr = ["one", "two", "three"];
@@ -461,7 +461,7 @@ var interpolatedZeros = [c+'0' for (c of str) ].join(''); // 'a0b0c0d0e0f0'
<p>为了实现最大的灵活性和效率,JavaScript类型数组被分解为缓冲(Buffer)和视图(views)。缓冲(由{{jsxref("ArrayBuffer")}} 实现)是代表数据块的对象,它没有格式可言,并没有提供任何机制来访问其内容。为了访问包含在缓冲区中的内存,您需要使用视图。视图提供了一个上下文,即数据类型、起始偏移量和元素数,这些元素将数据转换为实际类型数组。</p>
-<p><img alt="Typed arrays in an ArrayBuffer" src="https://mdn.mozillademos.org/files/8629/typed_arrays.png" style="height: 278px; width: 666px;"></p>
+<p><img alt="Typed arrays in an ArrayBuffer" src="https://mdn.mozillademos.org/files/8629/typed_arrays.png"></p>
<h3 id="ArrayBuffer">ArrayBuffer</h3>
diff --git a/files/zh-cn/web/javascript/guide/introduction/index.html b/files/zh-cn/web/javascript/guide/introduction/index.html
index f6a85d1e2d..36bcfc6639 100644
--- a/files/zh-cn/web/javascript/guide/introduction/index.html
+++ b/files/zh-cn/web/javascript/guide/introduction/index.html
@@ -111,7 +111,7 @@ translation_of: Web/JavaScript/Guide/Introduction
<p>在火狐浏览器菜单栏的 “工具" =&gt; "Web开发者" =&gt; "Web控制台" 可以打开控制台( 在Windows和Linux上<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>K</kbd> ,Mac上<kbd>Cmd</kbd>+<kbd>Option</kbd>+<kbd>K</kbd>) ,它会如期出现在浏览器窗口的底部。如图,最下一行就是可以执行输入的命令行,面板上可以显示执行结果:</p>
-<p><img alt="" src="https://mdn.mozillademos.org/files/7363/web-console-commandline.png" style="display: block; margin-left: auto; margin-right: auto;"></p>
+<p><img alt="" src="https://mdn.mozillademos.org/files/7363/web-console-commandline.png"></p>
<p>控制台的工作方式与eval完全相同:返回最后输入的表达式。为了简单起见,可以想象每次输入到控制台的东西实际上都被 console.log 所包围。</p>
@@ -125,7 +125,7 @@ translation_of: Web/JavaScript/Guide/Introduction
<p>如果你选择显示,草稿纸中的代码会在浏览器中执行,并在内容后面以注释的形式插入返回的结果:</p>
-<p><img alt="" src="https://mdn.mozillademos.org/files/7365/scratchpad.png" style="display: block; margin-left: auto; margin-right: auto;"></p>
+<p><img alt="" src="https://mdn.mozillademos.org/files/7365/scratchpad.png"></p>
<h3 id="Hello_world">Hello world</h3>
diff --git a/files/zh-cn/web/javascript/guide/iterators_and_generators/index.html b/files/zh-cn/web/javascript/guide/iterators_and_generators/index.html
index 1694adbd61..9e5bbe3cbd 100644
--- a/files/zh-cn/web/javascript/guide/iterators_and_generators/index.html
+++ b/files/zh-cn/web/javascript/guide/iterators_and_generators/index.html
@@ -70,7 +70,7 @@ console.log("Iterated over sequence of size: ", result.value); // 5
</pre>
<div class="note">
-<p>反射性地知道特定对象是否是迭代器是不可能的。 如果您需要这样做,请使用 <a href="#Iterables">Iterables</a>.</p>
+<p><strong>备注:</strong>反射性地知道特定对象是否是迭代器是不可能的。 如果您需要这样做,请使用 <a href="#Iterables">Iterables</a>.</p>
</div>
<h2 id="生成器函数">生成器函数</h2>
diff --git a/files/zh-cn/web/javascript/guide/modules/index.html b/files/zh-cn/web/javascript/guide/modules/index.html
index 3ad682563c..e3db44e9a0 100644
--- a/files/zh-cn/web/javascript/guide/modules/index.html
+++ b/files/zh-cn/web/javascript/guide/modules/index.html
@@ -39,8 +39,8 @@ translation_of: Web/JavaScript/Guide/Modules
<p>这的确有点简单,但是保持足够简单能够清晰地演示模块。</p>
-<div class="blockIndicator note">
-<p><strong>Note</strong>: 如果你想去下载这个例子在本地运行,你需要通过本地 web 服务器去运行。</p>
+<div class="note">
+<p><strong>备注:</strong>如果你想去下载这个例子在本地运行,你需要通过本地web 服务器去运行。</p>
</div>
<h2 id="基本的示例文件的结构">基本的示例文件的结构</h2>
@@ -53,8 +53,8 @@ modules/
canvas.mjs
square.mjs</pre>
-<div class="blockIndicator note">
-<p><strong>Note</strong>: 在这个指南的全部示例项目的文件结构是基本相同的; 需要熟悉上面的内容</p>
+<div class="note">
+<p><strong>备注:</strong>在这个指南的全部示例项目的文件结构是基本相同的; 需要熟悉上面的内容</p>
</div>
<p>modules 目录下的两个模块的描述如下:</p>
@@ -77,8 +77,8 @@ modules/
</li>
</ul>
-<div class="blockIndicator note">
-<p><strong>Note</strong>: 在原生JavaScript模块中, 扩展名 <code>.mjs</code> 非常重要,因为使用 MIME-type 为<code>javascript/esm</code> 来导入文件(其他的JavaScript 兼容 MIME-type 像 <code>application/javascript</code> 也可以), 它避免了严格的 MIME 类型检查错误,像 "The server responded with a non-JavaScript MIME type". 除此之外,  <code>.mjs</code> 的扩展名很明了(比如这个就是一个模块,而不是一个传统 JavaScript文件),还能够和其他工具互相适用. 看这个 <a href="https://v8.dev/features/modules#mjs">Google's note for further details</a>.</p>
+<div class="note">
+<p><strong>备注:</strong>在原生JavaScript模块中, 扩展名 <code>.mjs</code> 非常重要,因为使用 MIME-type 为<code>javascript/esm</code> 来导入文件(其他的JavaScript 兼容 MIME-type 像 <code>application/javascript</code> 也可以), 它避免了严格的 MIME 类型检查错误,像 "The server responded with a non-JavaScript MIME type". 除此之外,  <code>.mjs</code> 的扩展名很明了(比如这个就是一个模块,而不是一个传统 JavaScript文件),还能够和其他工具互相适用. 看这个 <a href="https://v8.dev/features/modules#mjs">Google's note for further details</a>.</p>
</div>
<h2 id=".mjs_与_.js"><code>.mjs</code> 与 <code>.js</code></h2>
@@ -151,8 +151,8 @@ export function draw(ctx, length, x, y, color) {
<p>你可以在<code><a href="https://github.com/mdn/js-examples/blob/master/modules/basic-modules/main.js">main.mjs</a></code>中看到这些。</p>
-<div class="blockIndicator note">
-<p><strong>Note</strong>:在一些模块系统中你可以忽略文件扩展名(比如<code>'/model/squre'</code> .这在原生JavaScript 模块系统中不工作。<s>此外,记住你需要包含最前面的正斜杠。  </s> (修订版 1889482)</p>
+<div class="note">
+<p><strong>备注:</strong>在一些模块系统中你可以忽略文件扩展名(比如<code>'/model/squre'</code> .这在原生JavaScript 模块系统中不工作。<del>此外,记住你需要包含最前面的正斜杠。</del> (修订版 1889482)</p>
</div>
<p>因为你导入了这些功能到你的脚本文件,你可以像定义在相同的文件中的一样去使用它。下面展示的是在 <code>main.mjs</code> 中的import 语句下面的内容。</p>
@@ -177,8 +177,8 @@ reportPerimeter(square1.length, reportList);
<p>你只能在模块内部使用 <code>import</code> 和<code>export</code> 语句 ;不是普通脚本文件。</p>
-<div class="blockIndicator note">
-<p><strong>Note</strong>: 您还可以将模块导入内部脚本,只要包含 <code>type="module"</code>,例如 <code>&lt;script type="module"&gt; //include script here &lt;/script&gt;</code>.</p>
+<div class="note">
+<p><strong>备注:</strong>您还可以将模块导入内部脚本,只要包含 <code>type="module"</code>,例如 <code>&lt;script type="module"&gt; //include script here &lt;/script&gt;</code>.</p>
</div>
<h2 id="其他模块与标准脚本的不同">其他模块与标准脚本的不同</h2>
@@ -216,8 +216,8 @@ reportPerimeter(square1.length, reportList);
<pre class="brush: js">import {default as randomSquare} from './modules/square.mjs';</pre>
-<div class="blockIndicator note">
-<p><strong>Note</strong>: 重命名导出项的as语法在下面的{{anch("Renaming imports and exports")}}部分中进行了说明。</p>
+<div class="note">
+<p><strong>备注:</strong>重命名导出项的as语法在下面的{{anch("Renaming imports and exports")}}部分中进行了说明。</p>
</div>
<h2 id="避免命名冲突">避免命名冲突</h2>
@@ -362,8 +362,8 @@ square1.reportPerimeter();</pre>
<pre class="brush: js">export * from 'x.mjs'
export { name } from 'x.mjs'</pre>
-<div class="blockIndicator note">
-<p><strong>Note</strong>: 这实际上是导入后跟导出的简写,即“我导入模块<code>x.mjs</code>,然后重新导出部分或全部导出”。</p>
+<div class="note">
+<p><strong>备注:</strong>这实际上是导入后跟导出的简写,即“我导入模块<code>x.mjs</code>,然后重新导出部分或全部导出”。</p>
</div>
<p>有关示例,请参阅我们的<a href="https://github.com/mdn/js-examples/tree/master/modules/module-aggregation">module-aggregation</a>。 在这个例子中(基于我们之前的类示例),我们有一个名为<code>shapes.mjs</code>的额外模块,它将<code>circle.mjs</code>,<code>square.mjs</code>和<code>riangle.mjs</code>中的所有功能聚合在一起。 我们还将子模块移动到名为shapes的modules目录中的子目录中。 所以模块结构现在是这样的:</p>
@@ -388,12 +388,12 @@ export { Circle } from '/js-examples/modules/module-aggregation/modules/shapes/c
<p>它们从各个子模块中获取导出,并有效地从<code>shapes.mjs</code>模块中获取它们。</p>
-<div class="blockIndicator note">
-<p><strong>Note</strong>: 即使<code>shapes.mjs</code>文件位于 modules 目录中,我们仍然需要相对于模块根目录编写这些URL,因此需要<code>/modules/</code>。 这是使用JavaScript模块时混淆的常见原因。</p>
+<div class="note">
+<p><strong>备注:</strong>即使<code>shapes.mjs</code>文件位于modules目录中,我们仍然需要相对于模块根目录编写这些URL,因此需要<code>/modules/</code>。 这是使用JavaScript模块时混淆的常见原因。</p>
</div>
-<div class="blockIndicator note">
-<p><strong>Note</strong>: <code>shapes.mjs</code>中引用的导出基本上通过文件重定向,并且实际上并不存在,因此您将无法在同一文件中编写任何有用的相关代码。</p>
+<div class="note">
+<p><strong>备注:</strong><code>shapes.mjs</code>中引用的导出基本上通过文件重定向,并且实际上并不存在,因此您将无法在同一文件中编写任何有用的相关代码。</p>
</div>
<p>所以现在在<code>main.mjs</code> 文件中,我们可以通过替换来访问所有三个模块类</p>
diff --git a/files/zh-cn/web/javascript/guide/regular_expressions/assertions/index.html b/files/zh-cn/web/javascript/guide/regular_expressions/assertions/index.html
index 0d3757acd6..783c2985e0 100644
--- a/files/zh-cn/web/javascript/guide/regular_expressions/assertions/index.html
+++ b/files/zh-cn/web/javascript/guide/regular_expressions/assertions/index.html
@@ -32,8 +32,8 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions/Assertions
<td>
<p>匹配输入的开头。如果多行模式设为 true,<code>^</code> 在换行符后也能立即匹配,比如 <code>/^A/</code> 匹配不了 "an A" 里面的 "A",但是可以匹配 "An A" 里面第一个 "A"。</p>
- <div class="blockIndicator note">
- <p><code>^</code> 出现在集合或范围开头时的含义与此不同(参见 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Groups_and_Ranges">group</a>)。</p>
+ <div class="note">
+ <p><strong>备注:</strong><code>^</code> 出现在集合或范围开头时的含义与此不同(参见 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Groups_and_Ranges">group</a>)。</p>
</div>
</td>
</tr>
@@ -71,8 +71,8 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions/Assertions
<h3 id="其他断言">其他断言 </h3>
-<div class="blockIndicator note">
-<p>提示:<code>?</code>字符也可用作量词</p>
+<div class="note">
+<p><strong>备注:</strong><code>?</code>字符也可用作量词</p>
</div>
<table class="standard-table">
diff --git a/files/zh-cn/web/javascript/guide/regular_expressions/character_classes/index.html b/files/zh-cn/web/javascript/guide/regular_expressions/character_classes/index.html
index 84bf4e0090..09cf23daa0 100644
--- a/files/zh-cn/web/javascript/guide/regular_expressions/character_classes/index.html
+++ b/files/zh-cn/web/javascript/guide/regular_expressions/character_classes/index.html
@@ -130,8 +130,8 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions/Character_Classes
<li>For characters that are usually treated specially, indicates that the next character is not special and should be interpreted literally. For example, "*" is a special character that means 0 or more occurrences of the preceding character should be matched; for example, <code>/a*/</code> means match 0 or more "a"s. To match <code>*</code> literally, precede it with a backslash; for example, <code>/a\*/</code> matches "a*".</li>
</ul>
- <div class="blockIndicator note">
- <p>To match this character literally, escape it with itself. In other words to search for <code>\</code> use <code>/\\/</code>.</p>
+ <div class="note">
+ <p><strong>备注:</strong>To match this character literally, escape it with itself. In other words to search for <code>\</code> use <code>/\\/</code>.</p>
</div>
</td>
</tr>
diff --git a/files/zh-cn/web/javascript/guide/regular_expressions/groups_and_ranges/index.html b/files/zh-cn/web/javascript/guide/regular_expressions/groups_and_ranges/index.html
index ac6334b3df..f0045774ff 100644
--- a/files/zh-cn/web/javascript/guide/regular_expressions/groups_and_ranges/index.html
+++ b/files/zh-cn/web/javascript/guide/regular_expressions/groups_and_ranges/index.html
@@ -46,8 +46,8 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions/Groups_and_Ranges
<td>
<p>一个否定的或被补充的字符集。也就是说,它匹配任何没有包含在括号中的字符。可以通过使用连字符来指定字符范围,但是如果连字符作为方括号中的第一个或最后一个字符出现,那么它将被视为作为普通字符包含在字符集中。例如,[^abc]和[^a-c]一样。它们最初匹配“bacon”中的“o”和“chop”中的“h”。</p>
- <div class="blockIndicator note">
- <p> ^ 字符也可以表示   <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Boundaries">输入的起始</a></p>
+ <div class="note">
+ <p><strong>备注:</strong> ^ 字符也可以表示   <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Boundaries">输入的起始</a></p>
</div>
</td>
</tr>
@@ -125,8 +125,8 @@ do {
// Hellow 李 雷
// Hellow 韩 梅梅</pre>
-<div class="blockIndicator note">
-<p><strong>Note:</strong> 并不是所有的浏览器都支持这个功能; 参考兼容表: <a href="/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Browser_compatibility">compatibility table</a>.</p>
+<div class="note">
+<p><strong>备注:</strong> 并不是所有的浏览器都支持这个功能; 参考兼容表: <a href="/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Browser_compatibility">compatibility table</a>.</p>
</div>
<h2 id="技术指标">技术指标</h2>
diff --git a/files/zh-cn/web/javascript/guide/regular_expressions/index.html b/files/zh-cn/web/javascript/guide/regular_expressions/index.html
index 945081c966..b8f02f1a9b 100644
--- a/files/zh-cn/web/javascript/guide/regular_expressions/index.html
+++ b/files/zh-cn/web/javascript/guide/regular_expressions/index.html
@@ -245,7 +245,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
/\w\b\w/将不能匹配任何字符串,因为在一个单词中间的字符永远也不可能同时满足没有“字”字符跟随和有“字”字符跟随两种情况。</p>
<div class="note">
- <p><strong>注意:</strong> JavaScript的正则表达式引擎将<a href="http://www.ecma-international.org/ecma-262/5.1/#sec-15.10.2.6">特定的字符集</a>定义为“字”字符。不在该集合中的任何字符都被认为是一个断词。这组字符相当有限:它只包括大写和小写的罗马字母,十进制数字和下划线字符。不幸的是,重要的字符,例如“<a></a>é”或“ü”,被视为断词。</p>
+ <p><strong>备注:</strong> JavaScript的正则表达式引擎将<a href="http://www.ecma-international.org/ecma-262/5.1/#sec-15.10.2.6">特定的字符集</a>定义为“字”字符。不在该集合中的任何字符都被认为是一个断词。这组字符相当有限:它只包括大写和小写的罗马字母,十进制数字和下划线字符。不幸的是,重要的字符,例如“é”或“ü”,被视为断词。</p>
</div>
</td>
</tr>
@@ -543,7 +543,7 @@ console.log("The value of lastIndex is " + /d(b+)d/g.lastIndex);
<p>当发生/d(b+)d/g使用两个不同状态的正则表达式对象,lastIndex属性会得到不同的值。如果你需要访问一个正则表达式的属性,则需要创建一个对象初始化生成器,你应该首先把它赋值给一个变量。</p>
-<h3 id="使用括号的子字符串匹配_2"><a>使用括号的子字符串匹配</a></h3>
+<h3 id="使用括号的子字符串匹配_2">使用括号的子字符串匹配</h3>
<p>一个正则表达式模式使用括号,将导致相应的子匹配被记住。例如,/a(b)c /可以匹配字符串“abc”,并且记得“b”。回调这些括号中匹配的子串,使用数组元素[1],……[n]。</p>
diff --git a/files/zh-cn/web/javascript/guide/regular_expressions/unicode_property_escapes/index.html b/files/zh-cn/web/javascript/guide/regular_expressions/unicode_property_escapes/index.html
index cf8a7207b6..64254c284c 100644
--- a/files/zh-cn/web/javascript/guide/regular_expressions/unicode_property_escapes/index.html
+++ b/files/zh-cn/web/javascript/guide/regular_expressions/unicode_property_escapes/index.html
@@ -9,12 +9,12 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions/Unicode_Property_Escape
<div>{{EmbedInteractiveExample("pages/js/regexp-unicode-property-escapes.html", "taller")}}</div>
-<div class="blockIndicator note">
-<p><strong>Note: </strong>使用 Unicode 属性转义依靠 <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode"><code>\u</code> 标识</a>,<code>\u</code> 表示该字符串被视为一串 Unicode 代码点。参考 <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode">RegExp.prototype.nicode</a></code>.</p>
+<div class="note">
+<p><strong>备注:</strong>使用 Unicode 属性转义依靠 <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode"><code>\u</code> 标识</a>,<code>\u</code> 表示该字符串被视为一串 Unicode 代码点。参考 <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode">RegExp.prototype.nicode</a></code>.</p>
</div>
-<div class="blockIndicator note">
-<p><strong>Note:</strong> 某些 Unicode 属性比<a href="/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes">字符类</a>(如 <code>\w</code> 只匹配拉丁字母 <code>a</code> 到 <code>z</code>)包含更多的字符  ,但后者浏览器兼容性更好 (截至2020 一月).</p>
+<div class="note">
+<p><strong>备注:</strong> 某些 Unicode 属性比<a href="/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes">字符类</a>(如 <code>\w</code> 只匹配拉丁字母 <code>a</code> 到 <code>z</code>)包含更多的字符  ,但后者浏览器兼容性更好 (截至2020 一月).</p>
</div>
<h2 id="句法">句法</h2>
@@ -48,8 +48,8 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions/Unicode_Property_Escape
<dd>很多值有同名或简写(e.g. 对应着 <code>General_Category</code> 属性名的属性值 <code>Decimal_Number</code> 可以写作 <code>Nd</code>, <code>digit</code>, 或 <code>Decimal_Number</code>). 大多数属性值的 <em><code>Unicode属性名</code></em> 和等号可以省去。如果想明确某 <em><code>Unicode属性名</code></em>,必须给出它的值。</dd>
</dl>
-<div class="blockIndicator note">
-<p><strong>Note:</strong> 因为可使用的属性和值太多,这里不一一赘述,仅提供几个例子。</p>
+<div class="note">
+<p><strong>备注:</strong> 因为可使用的属性和值太多,这里不一一赘述,仅提供几个例子。</p>
</div>
<h2 id="基本原理">基本原理</h2>
diff --git a/files/zh-cn/web/javascript/guide/using_promises/index.html b/files/zh-cn/web/javascript/guide/using_promises/index.html
index 22a0163216..5d7c65bf68 100644
--- a/files/zh-cn/web/javascript/guide/using_promises/index.html
+++ b/files/zh-cn/web/javascript/guide/using_promises/index.html
@@ -36,13 +36,13 @@ createAudioFileAsync(audioSettings, successCallback, failureCallback)</pre>
<p>如果函数 <code>createAudioFileAsync()</code> 被重写为返回 Promise 的形式,那么我们可以像下面这样简单地调用它:</p>
-<pre class="brush: js line-numbers language-js">const promise = createAudioFileAsync(audioSettings);
+<pre class="brush: js">const promise = createAudioFileAsync(audioSettings);
promise.then(successCallback, failureCallback);
</pre>
<p>或者简写为:</p>
-<pre class="brush: js line-numbers language-js">createAudioFileAsync(audioSettings).then(successCallback, failureCallback);
+<pre class="brush: js">createAudioFileAsync(audioSettings).then(successCallback, failureCallback);
</pre>
<p>我们把这个称为 <em>异步函数调用</em>,这种形式有若干优点,下面我们将会逐一讨论。</p>
@@ -65,7 +65,7 @@ promise.then(successCallback, failureCallback);
<p>见证奇迹的时刻:<code>then()</code> 函数会返回一个和原来不同的<strong>新的 Promise</strong>:</p>
-<pre class="brush: js line-numbers language-js">const promise = doSomething();
+<pre class="brush: js">const promise = doSomething();
const promise2 = promise.then(successCallback, failureCallback);
</pre>
diff --git a/files/zh-cn/web/javascript/guide/working_with_objects/index.html b/files/zh-cn/web/javascript/guide/working_with_objects/index.html
index dbdc3294a6..3cde5dd29d 100644
--- a/files/zh-cn/web/javascript/guide/working_with_objects/index.html
+++ b/files/zh-cn/web/javascript/guide/working_with_objects/index.html
@@ -75,7 +75,7 @@ console.log(myObj);
myCar[propertyName] = "Mustang";
</pre>
-<p>你可以在  <a class="internal" href="/zh-CN/docs/JavaScript/Guide/Statements#for...in_Statement" title="zh-CN/docs/JavaScript/Guide/Statements#for...in Statement">for...in</a> 语句中使用方括号标记以枚举一个对象的所有属性。为了展示它如何工作,下面的函数当你将对象及其名称作为参数传入时,显示对象的属性:</p>
+<p>你可以在  <a href="/zh-CN/docs/JavaScript/Guide/Statements#for...in_Statement">for...in</a> 语句中使用方括号标记以枚举一个对象的所有属性。为了展示它如何工作,下面的函数当你将对象及其名称作为参数传入时,显示对象的属性:</p>
<pre class="brush: js">function showProps(obj, objName) {
var result = "";
@@ -491,7 +491,7 @@ fruit === fruitbear // return false
</pre>
<div class="note">
-<p><strong>注意:</strong> "===" 运算符用来检查数值是否相等: 1 === "1"返回false,而1 == "1" 返回true</p>
+<p><strong>备注:</strong> "===" 运算符用来检查数值是否相等: 1 === "1"返回false,而1 == "1" 返回true</p>
</div>
<pre class="brush: js">// 两个变量, 同一个对象
diff --git a/files/zh-cn/web/javascript/index.html b/files/zh-cn/web/javascript/index.html
index 025e203963..959237a0ae 100644
--- a/files/zh-cn/web/javascript/index.html
+++ b/files/zh-cn/web/javascript/index.html
@@ -18,8 +18,6 @@ translation_of: Web/JavaScript
<p>不要将 JavaScript 与 <a href="https://en.wikipedia.org/wiki/Java_(programming_language)">Java编程语言</a> 混淆。虽然“Java”和“JavaScript”都是 Oracle 公司在美国和其他国家注册(或未注册)的商标,但是这两门语言在语法、语义与用途方面有很大不同。</p>
-<div class="column-container">
-<div class="column-half">
<h2 id="教程">教程</h2>
<p>通过使用指南和教程来学习如何用JavaScript语言编程。</p>
@@ -73,9 +71,7 @@ translation_of: Web/JavaScript
<dt><a href="/zh-CN/docs/Web/JavaScript/EventLoop">并发模型以及事件循环</a></dt>
<dd>JavaScript 具有基于“事件循环”的并发模型。</dd>
</dl>
-</div>
-<div class="column-half">
<h2 id="参考">参考</h2>
<p>浏览完整的 <a href="/zh-CN/docs/Web/JavaScript/Reference">JavaScript 参考</a>文档。</p>
@@ -102,7 +98,7 @@ translation_of: Web/JavaScript
<dd>允许您快速测试 JavaScript 代码片段。</dd>
<dt><a href="https://togetherjs.com/">TogetherJS</a></dt>
<dd>
- <p class="hero-header-text large">添加 TogetherJS 到您的网站,让用户实时互助,协作更简单。</p>
+ <p>添加 TogetherJS 到您的网站,让用户实时互助,协作更简单。</p>
</dd>
<dt><a href="https://stackoverflow.com/questions/tagged/javascript">Stack Overflow</a></dt>
<dd>你可以在 <a href="https://stackoverflow.com/">StackOverflow </a>查看或者发布带有 JavaScript 标签的问题。</dd>
@@ -117,5 +113,3 @@ translation_of: Web/JavaScript
<p>JS Bin 是一种开源的协作式的web 开发调试工具。</p>
</dd>
</dl>
-</div>
-</div>
diff --git a/files/zh-cn/web/javascript/inheritance_and_the_prototype_chain/index.html b/files/zh-cn/web/javascript/inheritance_and_the_prototype_chain/index.html
index 31f0522871..b9ba6dc992 100644
--- a/files/zh-cn/web/javascript/inheritance_and_the_prototype_chain/index.html
+++ b/files/zh-cn/web/javascript/inheritance_and_the_prototype_chain/index.html
@@ -32,7 +32,7 @@ translation_of: Web/JavaScript/Inheritance_and_the_prototype_chain
<p>JavaScript 对象是动态的属性“包”(指其自己的属性)。JavaScript 对象有一个指向一个原型对象的链。当试图访问一个对象的属性时,它不仅仅在该对象上搜寻,还会搜寻该对象的原型,以及该对象的原型的原型,依次层层向上搜索,直到找到一个名字匹配的属性或到达原型链的末尾。</p>
<div class="note">
-<p>遵循ECMAScript标准,<code>someObject.[[Prototype]]</code> 符号是用于指向 <code>someObject</code> 的原型。从 ECMAScript 6 开始,<code>[[Prototype]]</code> 可以通过 {{jsxref("Object.getPrototypeOf()")}} 和 {{jsxref("Object.setPrototypeOf()")}} 访问器来访问。这个等同于 JavaScript 的非标准但许多浏览器实现的属性 <code>__proto__</code>。</p>
+<p><strong>备注:</strong>遵循ECMAScript标准,<code>someObject.[[Prototype]]</code> 符号是用于指向 <code>someObject</code> 的原型。从 ECMAScript 6 开始,<code>[[Prototype]]</code> 可以通过 {{jsxref("Object.getPrototypeOf()")}} 和 {{jsxref("Object.setPrototypeOf()")}} 访问器来访问。这个等同于 JavaScript 的非标准但许多浏览器实现的属性 <code>__proto__</code>。</p>
<p>但它不应该与构造函数 <code>func</code> 的 <code>prototype</code> 属性相混淆。被构造函数创建的实例对象的 <code>[[Prototype]]</code> 指向 <code>func</code> 的 <code>prototype</code> 属性。<strong><code>Object.prototype</code> </strong>属性表示 {{jsxref("Object")}} 的原型对象。</p>
</div>
@@ -533,8 +533,8 @@ Foo.call(o);</pre>
<p>在使用原型继承编写复杂代码之前,理解原型继承模型是<strong>至关重要</strong>的。此外,请注意代码中原型链的长度,并在必要时将其分解,以避免可能的性能问题。此外,原生原型<strong>不应该</strong>被扩展,除非它是为了与新的 JavaScript 特性兼容。</p>
-<div class="standardNoteBlock note">
-<p><strong>译者注:</strong>在英文原版中,以下内容已被移除。保留仅作参考。</p>
+<div class="note">
+<p><strong>备注:</strong>在英文原版中,以下内容已被移除。保留仅作参考。</p>
</div>
<h2 id="示例">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/classes/constructor/index.html b/files/zh-cn/web/javascript/reference/classes/constructor/index.html
index 2264eaa6a8..73b4ac2507 100644
--- a/files/zh-cn/web/javascript/reference/classes/constructor/index.html
+++ b/files/zh-cn/web/javascript/reference/classes/constructor/index.html
@@ -118,7 +118,7 @@ console.log(newInstance.name); //Polygon
<h2 id="浏览器兼容">浏览器兼容</h2>
-<p>{{Compat("javascript.classes.constructor")}}</p>
+{{Compat}}
<h2 id="参阅">参阅</h2>
diff --git a/files/zh-cn/web/javascript/reference/classes/extends/index.html b/files/zh-cn/web/javascript/reference/classes/extends/index.html
index 37223f83ee..f01e3f8062 100644
--- a/files/zh-cn/web/javascript/reference/classes/extends/index.html
+++ b/files/zh-cn/web/javascript/reference/classes/extends/index.html
@@ -94,7 +94,7 @@ new nullExtends(); //ReferenceError: this is not defined</pre>
<h2 id="浏览器兼容">浏览器兼容</h2>
-<p>{{Compat("javascript.classes.extends")}}</p>
+{{Compat}}
<h2 id="扩展阅读">扩展阅读</h2>
diff --git a/files/zh-cn/web/javascript/reference/classes/index.html b/files/zh-cn/web/javascript/reference/classes/index.html
index 643b672fe7..8b2acf82d2 100644
--- a/files/zh-cn/web/javascript/reference/classes/index.html
+++ b/files/zh-cn/web/javascript/reference/classes/index.html
@@ -66,8 +66,8 @@ let Rectangle = class Rectangle2 {
console.log(Rectangle.name);
// 输出: "Rectangle2"</pre>
-<div class="blockIndicator note">
-<p><strong>注意:</strong> 类<strong>表达式</strong>也同样受到<a href="/zh-CN/docs/Web/JavaScript/Reference/Classes$edit#Class_declarations">类声明</a>部分中提到的类型提升的限制。</p>
+<div class="note">
+<p><strong>备注:</strong> 类<strong>表达式</strong>也同样受到<a href="/zh-CN/docs/Web/JavaScript/Reference/Classes$edit#Class_declarations">类声明</a>部分中提到的类型提升的限制。</p>
</div>
<h2 id="类体和方法定义">类体和方法定义</h2>
@@ -205,8 +205,8 @@ Rectangle.prototype.prototypeWidth = 25;</code>
<h3 id="字段声明">字段声明</h3>
-<div class="blockIndicator warning">
-<p>公共和私有字段声明是JavaScript标准委员会<a href="https://tc39.es/">TC39</a>提出的<a href="https://github.com/tc39/proposal-class-fields">实验性功能(第3阶段)</a>。浏览器中的支持是有限的,但是可以通过<a href="https://babeljs.io/">Babel</a>等系统构建后使用此功能。</p>
+<div class="warning">
+<p><strong>警告:</strong>公共和私有字段声明是JavaScript标准委员会<a href="https://tc39.es/">TC39</a>提出的<a href="https://github.com/tc39/proposal-class-fields">实验性功能(第3阶段)</a>。浏览器中的支持是有限的,但是可以通过<a href="https://babeljs.io/">Babel</a>等系统构建后使用此功能。</p>
</div>
<h4 id="公有字段声明">公有字段声明</h4>
@@ -243,8 +243,8 @@ Rectangle.prototype.prototypeWidth = 25;</code>
<p>从类外部引用私有字段是错误的。它们只能在类里面中读取或写入。通过定义在类外部不可见的内容,可以确保类的用户不会依赖于内部,因为内部可能在不同版本之间发生变化。</p>
-<div class="blockIndicator note">
-<p>私有字段仅能在字段声明中预先定义。 </p>
+<div class="note">
+<p><strong>备注:</strong>私有字段仅能在字段声明中预先定义。 </p>
</div>
<p>私有字段不能通过在之后赋值来创建它们,这种方式只适用普通属性。</p>
@@ -424,9 +424,7 @@ class Bar extends calculatorMixin(randomizerMixin(Foo)) { }</pre>
<h2 id="浏览器兼容">浏览器兼容</h2>
-
-
-<p>{{Compat("javascript.classes")}}</p>
+{{Compat}}
<h2 id="重新运行一个类定义">重新运行一个类定义</h2>
diff --git a/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html b/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html
index 64ce546ea0..33e7462617 100644
--- a/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html
+++ b/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html
@@ -10,7 +10,9 @@ original_slug: Web/JavaScript/Reference/Classes/Class_elements
---
<div>{{JsSidebar("Classes")}}</div>
-<div class="note">公有(public)和私有(private)字段声明是一个JavaScript标准委员会<a href="https://tc39.github.io/beta/">TC39</a>提议的<a href="https://github.com/tc39/proposal-class-fields">试验性功能 (第3阶段)</a>。这项功能在浏览器中的支持还受限,但你可以通过<a href="https://babeljs.io/">Babel</a>等构建系统来使用它。参见下面的<a href="#Browser_compatibility">兼容性信息</a>。</div>
+<div class="note">
+ <p><strong>备注:</strong>公有(public)和私有(private)字段声明是一个JavaScript标准委员会<a href="https://tc39.github.io/beta/">TC39</a>提议的<a href="https://github.com/tc39/proposal-class-fields">试验性功能 (第3阶段)</a>。这项功能在浏览器中的支持还受限,但你可以通过<a href="https://babeljs.io/">Babel</a>等构建系统来使用它。参见下面的<a href="#Browser_compatibility">兼容性信息</a>。</p>
+</div>
<h2 id="公有字段">公有字段</h2>
diff --git a/files/zh-cn/web/javascript/reference/classes/static/index.html b/files/zh-cn/web/javascript/reference/classes/static/index.html
index 1f6d544415..2898a2ffee 100644
--- a/files/zh-cn/web/javascript/reference/classes/static/index.html
+++ b/files/zh-cn/web/javascript/reference/classes/static/index.html
@@ -125,7 +125,7 @@ console.log(tp.tripple());// 'tp.tripple 不是一个函数'.</pre>
<h2 id="浏览器兼容">浏览器兼容</h2>
-<p>{{Compat("javascript.classes.static")}}</p>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/deprecated_and_obsolete_features/the_legacy_iterator_protocol/index.html b/files/zh-cn/web/javascript/reference/deprecated_and_obsolete_features/the_legacy_iterator_protocol/index.html
index 75308950a2..540d062f05 100644
--- a/files/zh-cn/web/javascript/reference/deprecated_and_obsolete_features/the_legacy_iterator_protocol/index.html
+++ b/files/zh-cn/web/javascript/reference/deprecated_and_obsolete_features/the_legacy_iterator_protocol/index.html
@@ -14,7 +14,9 @@ translation_of: >-
---
<div>{{jsSidebar("More")}}</div>
-<div class="warning">非标准。旧式迭代器协议是一个特定于 SpiderMonkey 的功能,在 Firefox 58+ 中删除。对于面向未来的用法,请考虑使用 <a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/for...of">for..of</a> 循环与<a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols">迭代协议</a>。</div>
+<div class="warning">
+<p><strong>警告:</strong>非标准。旧式迭代器协议是一个特定于 SpiderMonkey 的功能,在 Firefox 58+ 中删除。对于面向未来的用法,请考虑使用 <a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/for...of">for..of</a> 循环与<a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols">迭代协议</a>。</p>
+</div>
<h2 id="废弃的_Firefox_专用迭代器协议">废弃的 Firefox 专用迭代器协议</h2>
diff --git a/files/zh-cn/web/javascript/reference/errors/bad_octal/index.html b/files/zh-cn/web/javascript/reference/errors/bad_octal/index.html
index 2f9b5d477e..ff60730174 100644
--- a/files/zh-cn/web/javascript/reference/errors/bad_octal/index.html
+++ b/files/zh-cn/web/javascript/reference/errors/bad_octal/index.html
@@ -27,7 +27,7 @@ Warning: SyntaxError: 09 is not a legal ECMA-262 octal constant.
<p>请注意,不推荐使用八进制字面值和八进制转义序列,并会产生另外的弃用警告。 在 ECMAScript 6 和更高版本里,语法使用前导零后跟小写或大写拉丁字母“O”(0o或0O)。更多信息请查看 <a href="/zh-CN/docs/Web/JavaScript/Reference/Lexical_grammar#Octal">lexical grammar</a>。</p>
<div class="note">
-<p>注意:现在仅 <strong>firefox</strong> 会产生此错误。</p>
+<p><strong>备注:</strong>现在仅 <strong>firefox</strong> 会产生此错误。</p>
</div>
<h2 id="示例">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/errors/deprecated_source_map_pragma/index.html b/files/zh-cn/web/javascript/reference/errors/deprecated_source_map_pragma/index.html
index 42339a4e85..074e964160 100644
--- a/files/zh-cn/web/javascript/reference/errors/deprecated_source_map_pragma/index.html
+++ b/files/zh-cn/web/javascript/reference/errors/deprecated_source_map_pragma/index.html
@@ -51,55 +51,7 @@ Warning: SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecat
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>New syntax</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoDesktop(24) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>New syntax</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoMobile(24) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关">相关</h2>
diff --git a/files/zh-cn/web/javascript/reference/errors/for-each-in_loops_are_deprecated/index.html b/files/zh-cn/web/javascript/reference/errors/for-each-in_loops_are_deprecated/index.html
index 351be47a9d..ba17973172 100644
--- a/files/zh-cn/web/javascript/reference/errors/for-each-in_loops_are_deprecated/index.html
+++ b/files/zh-cn/web/javascript/reference/errors/for-each-in_loops_are_deprecated/index.html
@@ -29,12 +29,14 @@ translation_of: Web/JavaScript/Reference/Errors/For-each-in_loops_are_deprecated
<h4 id="不赞成这么使用">不赞成这么使用</h4>
<div class="warning">
-<p class="brush: js example-bad">var object = { a: 10, b: 20 };</p>
+<p><strong>警告:</strong></p>
+<pre class="brush: js example-bad">var object = { a: 10, b: 20 };</pre>
-<p class="brush: js example-bad">for each (var x in object) {<br>
-   console.log(x);        // 10<br>
-                          // 20<br>
- }</p>
+<pre class="brush: js example-bad">for each (var x in object) {
+   console.log(x);        // 10
+                          // 20
+ }
+</pre>
</div>
<h4 id="替换语法">替换语法</h4>
@@ -67,13 +69,14 @@ for (var x of Object.values(object)) {
<h4 id="不赞成这么使用_2">不赞成这么使用</h4>
<div class="warning">
-<p class="brush: js example-bad">var array = [10, 20, 30];</p>
-
-<p class="brush: js example-bad">for each (var x in array) {<br>
-   console.log(x);        // 10<br>
-                          // 20<br>
-                          // 30<br>
- }</p>
+<p><strong>警告:</strong></p>
+<pre class="brush: js example-bad">var array = [10, 20, 30];</pre>
+
+<pre class="brush: js example-bad">for each (var x in array) {
+   console.log(x);        // 10
+                          // 20
+                          // 30
+ }</pre>
</div>
<h4 id="替换语法_2">替换语法</h4>
@@ -96,15 +99,16 @@ for (var x of array) {
<h4 id="不赞成这么使用_3">不赞成这么使用</h4>
<div class="warning">
-<p class="brush: js example-bad">function func(array) {<br>
-   for each (var x in array) {<br>
-     console.log(x);<br>
-   }<br>
- }<br>
- func([10, 20]);        // 10<br>
-                        // 20<br>
- func(null);            // prints nothing<br>
- func(undefined);       // prints nothing</p>
+<p><strong>警告:</strong></p>
+<pre class="brush: js example-bad">function func(array) {
+   for each (var x in array) {
+     console.log(x);
+   }
+ }
+ func([10, 20]);        // 10
+                        // 20
+ func(null);            // prints nothing
+ func(undefined);       // prints nothing</pre>
</div>
<h4 id="替换语法_3">替换语法</h4>
@@ -131,12 +135,13 @@ func(undefined); // prints nothing
<p> 不赞成使用{{jsxref("Statements/for_each...in", "for each...in")}}和{{jsxref("Iterator")}} 对象来遍历指定对象的键值对.</p>
<div class="warning">
-<p class="brush: js example-bad">var object = { a: 10, b: 20 };</p>
+<p><strong>警告:</strong></p>
+<pre class="brush: js example-bad">var object = { a: 10, b: 20 };</pre>
-<p class="brush: js example-bad">for each (var [key, value] in Iterator(object)) {<br>
-   console.log(key, value);  // "a", 10<br>
-                             // "b", 20<br>
- }</p>
+<pre class="brush: js example-bad">for each (var [key, value] in Iterator(object)) {
+   console.log(key, value);  // "a", 10
+                             // "b", 20
+ }</pre>
</div>
<h4 id="替换语法_4">替换语法</h4>
diff --git a/files/zh-cn/web/javascript/reference/errors/getter_only/index.html b/files/zh-cn/web/javascript/reference/errors/getter_only/index.html
index 0636f30eea..0beef8d006 100644
--- a/files/zh-cn/web/javascript/reference/errors/getter_only/index.html
+++ b/files/zh-cn/web/javascript/reference/errors/getter_only/index.html
@@ -48,7 +48,7 @@ arc.temperature = 30;
<p>至于修复问题的方法,可以将第 16 行的代码移除,因为它试图为 temperature 属性赋值,或者是为它添加一个 <a href="/en-US/docs/Web/JavaScript/Reference/Functions/set">setter</a> 特性,就像下面这样:</p>
-<pre class="brush: js example-good highlight[12]">"use strict";
+<pre class="brush: js example-good">"use strict";
function Archiver() {
var temperature = null;
diff --git a/files/zh-cn/web/javascript/reference/errors/missing_formal_parameter/index.html b/files/zh-cn/web/javascript/reference/errors/missing_formal_parameter/index.html
index 9d8a069258..1528fbe00e 100644
--- a/files/zh-cn/web/javascript/reference/errors/missing_formal_parameter/index.html
+++ b/files/zh-cn/web/javascript/reference/errors/missing_formal_parameter/index.html
@@ -29,7 +29,7 @@ translation_of: Web/JavaScript/Reference/Errors/Missing_formal_parameter
<p>在构造一个函数的时候,函数参数必须为标记符。下面列举的函数声明都是无效的,因为它们在参数部分使用的是数值:</p>
-<pre class="brush: js example-bad highlight:[1,6,11]">function square(3) {
+<pre class="brush: js example-bad">function square(3) {
return number * number;
};
// SyntaxError: missing formal parameter
@@ -47,7 +47,7 @@ function log({ obj: "value"}) {
<p>需要在函数声明中使用标记符:</p>
-<pre class="brush: js example-good highlight:[1,5,9]">function square(number) {
+<pre class="brush: js example-good">function square(number) {
return number * number;
};
diff --git a/files/zh-cn/web/javascript/reference/errors/missing_semicolon_before_statement/index.html b/files/zh-cn/web/javascript/reference/errors/missing_semicolon_before_statement/index.html
index 963008b259..434c765136 100644
--- a/files/zh-cn/web/javascript/reference/errors/missing_semicolon_before_statement/index.html
+++ b/files/zh-cn/web/javascript/reference/errors/missing_semicolon_before_statement/index.html
@@ -61,13 +61,13 @@ array[0] = "there";
<p>如果你用的是另一种编程语言,那么在javaScript中使用不具有相同或完全没有意义的关键字也是很常见的:</p>
-<pre class="brush: js example-bad line-numbers language-js">def print(info){
+<pre class="brush: js example-bad">def print(info){
console.log(info);
}; // SyntaxError missing ; before statement</pre>
<p>因此,建议使用<code>function</code>而不是<code>def</code>:</p>
-<pre class="brush: js example-good line-numbers language-js">function print(info){
+<pre class="brush: js example-good">function print(info){
console.log(info);
};</pre>
diff --git a/files/zh-cn/web/javascript/reference/errors/not_defined/index.html b/files/zh-cn/web/javascript/reference/errors/not_defined/index.html
index cc5fadb2a8..070e804d5c 100644
--- a/files/zh-cn/web/javascript/reference/errors/not_defined/index.html
+++ b/files/zh-cn/web/javascript/reference/errors/not_defined/index.html
@@ -19,7 +19,7 @@ translation_of: Web/JavaScript/Reference/Errors/Not_defined
<p>在某些地方引用一个不存在的变量的时候。当你使用变量的时候,这个变量必须是已经被声明的,或者你可以确保它在你当前的脚本或作用域 ({{Glossary("scope")}}) 中可用。</p>
<div class="note">
-<p><strong>注意:</strong> 当你加载一个库的时候(例如 jQuery),请确保你在这个库加载完毕后再使用这个库中的变量,如“$”。将你想加载的库的 {{HTMLElement("script")}} 标签放置在你的代码前面。</p>
+<p><strong>备注:</strong> 当你加载一个库的时候(例如 jQuery),请确保你在这个库加载完毕后再使用这个库中的变量,如“$”。将你想加载的库的 {{HTMLElement("script")}} 标签放置在你的代码前面。</p>
</div>
<h2 id="示例">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/functions/arguments/callee/index.html b/files/zh-cn/web/javascript/reference/functions/arguments/callee/index.html
index 65e9123fe5..c448f3b091 100644
--- a/files/zh-cn/web/javascript/reference/functions/arguments/callee/index.html
+++ b/files/zh-cn/web/javascript/reference/functions/arguments/callee/index.html
@@ -19,7 +19,7 @@ translation_of: Web/JavaScript/Reference/Functions/arguments/callee
<p><strong><code>callee</code></strong> 是 <code>arguments</code> 对象的一个属性。它可以用于引用该函数的函数体内当前正在执行的函数。这在函数的名称是未知时很有用,例如在没有名称的函数表达式 (也称为“匿名函数”)内。</p>
-<div class="warning"><strong>警告:</strong>在<a href="/en-US/docs/JavaScript/Reference/Functions_and_function_scope/Strict_mode" title="/en-US/docs/JavaScript/Reference/Functions_and_function_scope/Strict_mode">严格模式</a>下,第5版 ECMAScript (<strong>ES5</strong>) 禁止使用 <code>a<strong>rguments.callee()</strong>。当一个函数必须调用自身的时候, 避免使用 <strong>arguments.callee(), </strong></code>通过<code>要么</code>给函数表达式一个名字,要么使用一个函数声明.</div>
+<div class="warning"><p><strong>警告:</strong>在<a href="/en-US/docs/JavaScript/Reference/Functions_and_function_scope/Strict_mode" title="/en-US/docs/JavaScript/Reference/Functions_and_function_scope/Strict_mode">严格模式</a>下,第5版 ECMAScript (<strong>ES5</strong>) 禁止使用 <code>a<strong>rguments.callee()</strong>。当一个函数必须调用自身的时候, 避免使用 <strong>arguments.callee(), </strong></code>通过<code>要么</code>给函数表达式一个名字,要么使用一个函数声明.</p></div>
<h2 id="为什么_arguments.callee_从ES5严格模式中删除了?">为什么 arguments.callee 从ES5严格模式中删除了?</h2>
diff --git a/files/zh-cn/web/javascript/reference/functions/arguments/index.html b/files/zh-cn/web/javascript/reference/functions/arguments/index.html
index 8b708b2c37..db796d1651 100644
--- a/files/zh-cn/web/javascript/reference/functions/arguments/index.html
+++ b/files/zh-cn/web/javascript/reference/functions/arguments/index.html
@@ -21,12 +21,12 @@ translation_of: Web/JavaScript/Reference/Functions/arguments
<h2 id="Description">描述</h2>
-<div class="blockIndicator note">
-<p><strong>Note:</strong> If you're writing ES6 compatible code, then <a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/rest_parameters">rest parameters</a> should be preferred.</p>
+<div class="note">
+<p><strong>备注:</strong> If you're writing ES6 compatible code, then <a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/rest_parameters">rest parameters</a> should be preferred.</p>
</div>
-<div class="blockIndicator note">
-<p><strong>Note:</strong> “Array-like” means that <code>arguments</code> has a {{jsxref("Functions/arguments/length", "length")}} property and properties indexed from zero, but it doesn't have {{JSxRef("Array")}}'s built-in methods like {{jsxref("Array.forEach", "forEach()")}} and {{jsxref("Array.map", "map()")}}. See <a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/arguments$edit#Description">§Description</a> for details.</p>
+<div class="note">
+<p><strong>备注:</strong> “Array-like” means that <code>arguments</code> has a {{jsxref("Functions/arguments/length", "length")}} property and properties indexed from zero, but it doesn't have {{JSxRef("Array")}}'s built-in methods like {{jsxref("Array.forEach", "forEach()")}} and {{jsxref("Array.map", "map()")}}. See <a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/arguments$edit#Description">§Description</a> for details.</p>
</div>
<p><code>arguments</code>对象是所有(非箭头)函数中都可用的<strong>局部变量</strong>。你可以使用<code>arguments</code>对象在函数中引用函数的参数。此对象包含传递给函数的每个参数,第一个参数在索引0处。例如,如果一个函数传递了三个参数,你可以以如下方式引用他们:</p>
@@ -51,7 +51,7 @@ const args = [...arguments];
</pre>
<div class="warning">
-<p>对参数使用slice会阻止某些JavaScript引擎中的优化 (比如 V8 - <a href="https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments">更多信息</a>)。如果你关心性能,尝试通过遍历arguments对象来构造一个新的数组。另一种方法是使用被忽视的<code>Array</code>构造函数作为一个函数:</p>
+<p><strong>警告:</strong>对参数使用slice会阻止某些JavaScript引擎中的优化 (比如 V8 - <a href="https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments">更多信息</a>)。如果你关心性能,尝试通过遍历arguments对象来构造一个新的数组。另一种方法是使用被忽视的<code>Array</code>构造函数作为一个函数:</p>
<pre class="brush: js">var args = (arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments));
</pre>
@@ -93,20 +93,14 @@ var args = [...arguments];</pre>
<dl>
<dt><code><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/arguments/callee" title="JavaScript/Reference/Functions_and_function_scope/arguments/callee">arguments.callee</a></code></dt>
<dd>指向参数所属的当前执行的函数。</dd>
- <dt>
- </dt>
- <dd>
- <p>指向调用当前函数的函数。</p>
- </dd>
<dt><code><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/arguments/length" title="JavaScript/Reference/Functions_and_function_scope/arguments/length">arguments.length</a></code></dt>
<dd>传递给函数的参数数量。</dd>
<dt><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/@@iterator">arguments[@@iterator]</a></code></dt>
<dd>返回一个新的{{jsxref("Array/@@iterator", "Array 迭代器", "", 0)}} 对象,该对象包含参数中每个索引的值。</dd>
- <dt></dt>
</dl>
-<div class="blockIndicator note">
-<p>注意: 在严格模式下,<code>arguments</code>对象已与过往不同。<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/@@iterator">arguments[@@iterator]</a></code>不再与函数的实际形参之间共享,同时caller属性也被移除。</p>
+<div class="note">
+<p><strong>备注:</strong>在严格模式下,<code>arguments</code>对象已与过往不同。<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/@@iterator">arguments[@@iterator]</a></code>不再与函数的实际形参之间共享,同时caller属性也被移除。</p>
</div>
<h2 id="Examples">例子</h2>
@@ -149,7 +143,7 @@ myConcat(". ", "sage", "basil", "oregano", "pepper", "parsley");</pre>
<p>这个例子定义了一个函数通过一个字符串来创建HTML列表。这个函数唯一正式声明了的参数是一个字符。当该参数为 "<code>u</code>" 时,创建一个无序列表 (项目列表);当该参数为 "<code>o</code>" 时,则创建一个有序列表 (编号列表)。该函数定义如下:</p>
-<pre class="brush:js language-js">function list(type) {
+<pre class="brush:js">function list(type) {
var result = "&lt;" + type + "l&gt;&lt;li&gt;";
var args = Array.prototype.slice.call(arguments, 1);
result += args.join("&lt;/li&gt;&lt;li&gt;");
@@ -160,7 +154,7 @@ myConcat(". ", "sage", "basil", "oregano", "pepper", "parsley");</pre>
<p>你可以传递任意数量的参数到该函数,并将每个参数作为一个项添加到指定类型的列表中。例如:</p>
-<pre class="brush:js language-js">var listHTML = list("u", "One", "Two", "Three");
+<pre class="brush:js">var listHTML = list("u", "One", "Two", "Three");
/* listHTML is:
@@ -257,7 +251,7 @@ func(); // undefined
<h2 id="浏览器兼容">浏览器兼容</h2>
-<p>{{Compat("javascript.functions.arguments")}}</p>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/functions/arrow_functions/index.html b/files/zh-cn/web/javascript/reference/functions/arrow_functions/index.html
index ff24c56152..09c9864d26 100644
--- a/files/zh-cn/web/javascript/reference/functions/arrow_functions/index.html
+++ b/files/zh-cn/web/javascript/reference/functions/arrow_functions/index.html
@@ -22,7 +22,7 @@ translation_of: Web/JavaScript/Reference/Functions/Arrow_functions
<h2 id="Syntax">语法</h2>
<blockquote>
-<h3 class="brush: js" id="基础语法">基础语法</h3>
+<h3 id="基础语法">基础语法</h3>
<pre>(param1, param2, …, paramN) =&gt; { statements }
(param1, param2, …, paramN) =&gt; expression
diff --git a/files/zh-cn/web/javascript/reference/functions/get/index.html b/files/zh-cn/web/javascript/reference/functions/get/index.html
index 613bb86276..feb8c2f37a 100644
--- a/files/zh-cn/web/javascript/reference/functions/get/index.html
+++ b/files/zh-cn/web/javascript/reference/functions/get/index.html
@@ -102,8 +102,8 @@ console.log(obj.foo); // "bar"</pre>
<li>如果被使用,它将被访问几次,并且不需要重新计算,该值将永远不会被改变,或者不应该被重新计算。</li>
</ul>
-<div class="blockIndicator note">
-<p>这意味着你不应该为你希望更改其值的属性使用懒 getter,因为 getter 不会重新计算该值。</p>
+<div class="note">
+<p><strong>备注:</strong>这意味着你不应该为你希望更改其值的属性使用懒 getter,因为 getter 不会重新计算该值。</p>
</div>
<p>在以下示例中,对象具有一个 getter 属性。在获取属性时,该属性将从对象中删除并重新添加,但此时将隐式显示为数据属性。最后返回得到值。</p>
diff --git a/files/zh-cn/web/javascript/reference/functions/index.html b/files/zh-cn/web/javascript/reference/functions/index.html
index 876a0c42ee..a1b4dcd965 100644
--- a/files/zh-cn/web/javascript/reference/functions/index.html
+++ b/files/zh-cn/web/javascript/reference/functions/index.html
@@ -27,7 +27,7 @@ translation_of: Web/JavaScript/Reference/Functions
<p>调用函数时,传递给函数的值被称为函数的实参(值传递),对应位置的函数参数名叫作形参。如果实参是一个包含原始值(数字,字符串,布尔值)的变量,则就算函数在内部改变了对应形参的值,返回后,该实参变量的值也不会改变。如果实参是一个对象引用,则对应形参会和该实参指向同一个对象。假如函数在内部改变了对应形参的值,返回后,实参指向的对象的值也会改变:</p>
-<pre class="brush: js line-numbers language-js"> /* 定义函数 myFunc */
+<pre class="brush: js"> /* 定义函数 myFunc */
function myFunc(theObject)
{
//实参 mycar 和形参 theObject 指向同一个对象.
@@ -165,7 +165,7 @@ translation_of: Web/JavaScript/Reference/Functions
<h3 id="Function构造函数"> <code>Function</code>构造函数</h3>
<div class="note">
-<p><strong>注意:</strong> 不推荐使用 <code>Function</code> 构造函数创建函数,因为它需要的函数体作为字符串可能会阻止一些JS引擎优化,也会引起其他问题。</p>
+<p><strong>备注:</strong> 不推荐使用 <code>Function</code> 构造函数创建函数,因为它需要的函数体作为字符串可能会阻止一些JS引擎优化,也会引起其他问题。</p>
</div>
<p>所有其他对象, {{jsxref("Function")}} 对象可以用new操作符创建:</p>
@@ -184,11 +184,11 @@ translation_of: Web/JavaScript/Reference/Functions
<h3 id="生成器函数的构造函数">生成器函数的构造函数</h3>
<div class="note">
-<p><strong>注意:</strong> <code>GeneratorFunction</code> 不是一个全局对象,但可以从构造函数实例取得。(详情请查阅<a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/生成器函数">生成器函数</a>).</p>
+<p><strong>备注:</strong> <code>GeneratorFunction</code> 不是一个全局对象,但可以从构造函数实例取得。(详情请查阅<a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/生成器函数">生成器函数</a>).</p>
</div>
<div class="note">
-<p><strong>注意:</strong> 不推荐使用构造器函数的构造函数 (<code>GeneratorFunction</code> constructor)创建函数,因为它需要的函数体作为字符串可能会阻止一些JS引擎优化,也会引起其他问题。</p>
+<p><strong>备注:</strong> 不推荐使用构造器函数的构造函数 (<code>GeneratorFunction</code> constructor)创建函数,因为它需要的函数体作为字符串可能会阻止一些JS引擎优化,也会引起其他问题。</p>
</div>
<p>所有其他对象, {{jsxref("GeneratorFunction")}} 对象可以用 new 操作符创建:</p>
@@ -244,7 +244,7 @@ translation_of: Web/JavaScript/Reference/Functions
<p>从ECMAScript 6开始, 你可以用更短的语法定义自己的方法,类似于getters和setters。详情请查阅 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Method_definitions">method definitions</a> .</p>
-<pre class="brush: js line-numbers language-js"> var obj = {
+<pre class="brush: js"> var obj = {
foo() {},
bar() {}
};
@@ -267,7 +267,7 @@ translation_of: Web/JavaScript/Reference/Functions
<p>一个匿名函数的函数表达式,被赋值给变量<code>multiply</code>:</p>
-<pre class="brush: js line-numbers language-js"> var multiply = function(x, y) {
+<pre class="brush: js"> var multiply = function(x, y) {
return x * y;
};
</pre>
@@ -284,7 +284,7 @@ translation_of: Web/JavaScript/Reference/Functions
<p>函数名和函数的变量存在着差别。函数名不能被改变,但函数的变量却能够被再分配。函数名只能在函数体内使用。倘若在函数体外使用函数名将会导致错误(如果函数之前是通过一个var语句声明的则是undefined)。例如:</p>
-<pre class="brush: js line-numbers language-js">var y = function x() {};
+<pre class="brush: js">var y = function x() {};
alert(x); // throws an error
</pre>
@@ -296,12 +296,12 @@ alert(x); // throws an error
<p>使用用 '<code>new Function'定义的函数没有函数名。</code> 然而,在 <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey">SpiderMonkey</a> JavaScript引擎中,其函数的序列化形式表现的好像它拥有一个名叫"anonymous"的名称一样。比如,使用 <code>alert(new Function())</code> 输出:</p>
-<pre class="brush: js line-numbers language-js">function anonymous() {
+<pre class="brush: js">function anonymous() {
}</pre>
<p>而实际上其函数并没有名称,<code>anonymous</code> 不是一个可以在函数内被访问到的变量。例如,下面的例子将会导致错误:</p>
-<pre class="brush: js line-numbers language-js">var foo = new Function("alert(anonymous);");
+<pre class="brush: js">var foo = new Function("alert(anonymous);");
foo();
</pre>
@@ -345,7 +345,7 @@ function foo() { // source element
<h3 id="例子">例子</h3>
-<pre class="brush: js line-numbers language-js">// 函数声明
+<pre class="brush: js">// 函数声明
function foo() {}
// 函数表达式
@@ -486,9 +486,7 @@ result = padZeros(5,4); // returns "0005"</pre>
<h2 id="浏览器兼容">浏览器兼容</h2>
-
-
-<p>{{Compat("javascript.functions")}}</p>
+{{Compat}}
<h2 id="参阅">参阅</h2>
diff --git a/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html b/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html
index ced585a822..427aaa8c79 100644
--- a/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html
+++ b/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html
@@ -61,7 +61,7 @@ translation_of: Web/JavaScript/Reference/Functions/Method_definitions
};</pre>
<div class="note">
-<p><strong>注意:</strong>简写语法使用命名函数而不是匿名函数(如…<code>foo: function() {}</code>…)。命名函数可以从函数体调用(这对匿名函数是不可能的,因为没有标识符可以引用)。详细信息,请参阅{{jsxref("Operators/function","function","#Examples")}}。</p>
+<p><strong>备注:</strong>简写语法使用命名函数而不是匿名函数(如…<code>foo: function() {}</code>…)。命名函数可以从函数体调用(这对匿名函数是不可能的,因为没有标识符可以引用)。详细信息,请参阅{{jsxref("Operators/function","function","#Examples")}}。</p>
</div>
<h3 id="生成器方法">生成器方法</h3>
@@ -75,7 +75,7 @@ translation_of: Web/JavaScript/Reference/Functions/Method_definitions
</li>
</ul>
-<pre class="brush: js;highlight[12]">// 用有属性名的语法定义方法(ES6之前):
+<pre class="brush: js">// 用有属性名的语法定义方法(ES6之前):
var obj2 = {
g: function*() {
var index = 0;
@@ -155,7 +155,7 @@ new obj.g; // TypeError: obj.g is not a constructor (changed in ES2016)
<h3 id="简单示例">简单示例</h3>
-<pre class="brush: js;highlight[3]">var obj = {
+<pre class="brush: js">var obj = {
a : "foo",
b(){ return this.a; }
};
@@ -166,7 +166,7 @@ console.log(obj.b()); // "foo"
<p>该简写语法还支持计算的属性名称作为方法名。</p>
-<pre class="brush: js;highlight[4]">var bar = {
+<pre class="brush: js">var bar = {
foo0: function() { return 0; },
foo1() { return 1; },
['foo' + 2]() { return 2; }
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/concat/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/concat/index.html
index dbd74c0909..b612dc454f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/concat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/concat/index.html
@@ -44,7 +44,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/concat
</ul>
<div class="note">
-<p><strong>注意:</strong>数组/值在连接时保持不变。此外,对于新数组的任何操作(仅当元素不是对象引用时)都不会对原始数组产生影响,反之亦然。</p>
+<p><strong>备注:</strong>数组/值在连接时保持不变。此外,对于新数组的任何操作(仅当元素不是对象引用时)都不会对原始数组产生影响,反之亦然。</p>
</div>
<h2 id="Examples">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/every/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/every/index.html
index 38d4388b52..ae369c0559 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/every/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/every/index.html
@@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/every
<p><code><strong>every()</strong></code> 方法测试一个数组内的所有元素是否都能通过某个指定函数的测试。它返回一个布尔值。</p>
<div class="note">
-<p><strong>注意</strong>:若收到一个空数组,此方法在一切情况下都会返回 <code>true</code>。</p>
+<p><strong>备注:</strong>:若收到一个空数组,此方法在一切情况下都会返回 <code>true</code>。</p>
</div>
<div>{{EmbedInteractiveExample("pages/js/array-every.html")}}</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/flat/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/flat/index.html
index 4f06aff1fc..ec0af471c3 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/flat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/flat/index.html
@@ -76,7 +76,7 @@ arr.reduce((acc, val) =&gt; acc.concat(val), []);
// 使用扩展运算符 ...
const flattened = arr =&gt; [].concat(...arr);</code></pre>
-<h3 class="brush: js" id="reduce_concat_isArray_recursivity">reduce + concat + isArray + recursivity</h3>
+<h3 id="reduce_concat_isArray_recursivity">reduce + concat + isArray + recursivity</h3>
<pre class="brush: js">// 使用 reduce、concat 和递归展开无限多层嵌套的数组
var arr1 = [1,2,3,[1,2,3,4, [2,3,4]]];
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/foreach/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/foreach/index.html
index 6f93bd4513..1c9a181656 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/foreach/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/foreach/index.html
@@ -65,7 +65,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/forEach
<p><code>forEach()</code> 被调用时,不会改变原数组,也就是调用它的数组(尽管 <code><var>callback</var></code> 函数在被调用时可能会改变原数组)。(译注:此处说法可能不够明确,具体可参考EMCA语言规范:'<code>forEach</code> does not directly mutate the object on which it is called but the object may be mutated by the calls to <code><var>callbackfn</var></code>.',即 <code>forEach</code> 不会直接改变调用它的对象,但是那个对象可能会被 <code><var>callback</var></code> 函数改变。)</p>
<div class="note">
-<p><strong>注意:</strong> 除了抛出异常以外,没有办法中止或跳出 <code>forEach()</code> 循环。如果你需要中止或跳出循环,<code>forEach()</code> 方法不是应当使用的工具。</p>
+<p><strong>备注:</strong> 除了抛出异常以外,没有办法中止或跳出 <code>forEach()</code> 循环。如果你需要中止或跳出循环,<code>forEach()</code> 方法不是应当使用的工具。</p>
<p>若你需要提前终止循环,你可以使用:</p>
@@ -129,8 +129,8 @@ items.forEach(function(item){
<h3 id="打印出数组的内容">打印出数组的内容</h3>
-<div class="blockIndicator note">
-<p><strong>注意:</strong>为了在控制台中显示数组的内容,你可以使用 <code><a href="/zh-CN/docs/Web/API/Console/table">console.table()</a></code> 来展示经过格式化的数组。下面的例子则是另一种使用 <code>forEach()</code> 的格式化的方法。</p>
+<div class="note">
+<p><strong>备注:</strong>为了在控制台中显示数组的内容,你可以使用 <code><a href="/zh-CN/docs/Web/API/Console/table">console.table()</a></code> 来展示经过格式化的数组。下面的例子则是另一种使用 <code>forEach()</code> 的格式化的方法。</p>
</div>
<p>下面的代码会为每一个数组元素输出一行记录:</p>
@@ -174,7 +174,9 @@ obj.sum;
<p>因为 <code><var>thisArg</var></code> 参数(<code>this</code>)传给了 <code>forEach()</code>,每次调用时,它都被传给 <code><var>callback</var></code> 函数,作为它的 <code>this</code> 值。</p>
<div>
-<div class="note"><strong>注意:</strong>如果使用<a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions">箭头函数表达式</a>来传入函数参数, <code><var>thisArg</var></code> 参数会被忽略,因为箭头函数在词法上绑定了 {{jsxref("Operators/this", "this")}} 值。</div>
+<div class="note">
+<p><strong>备注:</strong>如果使用<a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions">箭头函数表达式</a>来传入函数参数, <code><var>thisArg</var></code> 参数会被忽略,因为箭头函数在词法上绑定了 {{jsxref("Operators/this", "this")}} 值。</p>
+</div>
</div>
<h3 id="对象复制器函数">对象复制器函数</h3>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/includes/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/includes/index.html
index 5001b155be..3fdd124719 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/includes/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/includes/index.html
@@ -28,8 +28,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/includes
<dd>
<p>需要查找的元素值。</p>
- <div class="blockIndicator note">
- <p><strong>Note: </strong>使用<strong> </strong><code>includes()</code>比较字符串和字符时是区分大小写的。</p>
+ <div class="note">
+ <p><strong>备注:</strong>使用<strong> </strong><code>includes()</code>比较字符串和字符时是区分大小写的。</p>
</div>
</dd>
<dt><code>fromIndex</code> {{optional_inline}}</dt>
@@ -43,7 +43,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/includes
<p>0 的值将全部视为相等,与符号无关(即 -0 与 0 和 +0 相等),但 <code>false</code> 不被认为与 0 相等。</p>
<div class="note">
-<p><strong>Note:</strong> 技术上来讲,<code>includes()</code> 使用 <code><a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Equality_comparisons_and_sameness#%E9%9B%B6%E5%80%BC%E7%9B%B8%E7%AD%89">零值相等</a></code> 算法来确定是否找到给定的元素。</p>
+<p><strong>备注:</strong> 技术上来讲,<code>includes()</code> 使用 <code><a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Equality_comparisons_and_sameness#%E9%9B%B6%E5%80%BC%E7%9B%B8%E7%AD%89">零值相等</a></code> 算法来确定是否找到给定的元素。</p>
</div>
<h2 id="示例">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/index.md b/files/zh-cn/web/javascript/reference/global_objects/array/index.md
index 70b70221e2..fa360b4d50 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/index.md
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/index.md
@@ -232,9 +232,9 @@ const myArray = myRe.exec('cdbBdbsbz')
<table class="fullwidth-table standard-table">
<thead>
<tr>
- <th class="header" scope="col">属性/元素</td>
- <th class="header" scope="col">说明</td>
- <th class="header" scope="col">示例</td>
+ <th scope="col">属性/元素</td>
+ <th scope="col">说明</td>
+ <th scope="col">示例</td>
</tr>
</thead>
<tbody>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/indexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/indexof/index.html
index a4ef7ead3b..3e24bae2c5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/indexof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/indexof/index.html
@@ -17,7 +17,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/indexOf
<div>{{EmbedInteractiveExample("pages/js/array-indexof.html")}}</div>
<div class="note">
-<p>注意:对于String方法,请参阅 {{jsxref("String.prototype.indexOf()")}}。</p>
+<p><strong>备注:</strong>对于String方法,请参阅 {{jsxref("String.prototype.indexOf()")}}。</p>
</div>
<h2 id="Syntax">语法</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/join/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/join/index.html
index b4c06b6acb..defbf9c200 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/join/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/join/index.html
@@ -23,18 +23,18 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/join
<dl>
<dt><code>separator</code> {{optional_inline}}</dt>
<dd>指定一个字符串来分隔数组的每个元素。如果需要,将分隔符转换为字符串。如果缺省该值,数组元素用逗号(<code>,</code>)分隔。如果<code>separator</code>是空字符串(<code>""</code>),则所有元素之间都没有任何字符。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
- </dt>
- <dd>一个所有数组元素连接的字符串。如果 <code>arr.length</code><strong> </strong>为0,则返回空字符串。</dd>
</dl>
+<h3 id="返回值">返回值</h3>
+
+<p>一个所有数组元素连接的字符串。如果 <code>arr.length</code><strong> </strong>为0,则返回空字符串。</p>
+
<h2 id="Description">描述</h2>
<p>所有的数组元素被转换成字符串,再用一个分隔符将这些字符串连接起来。</p>
-<div class="blockIndicator warning">
-<p>如果一个元素为 <code>undefined</code> 或 <code>null</code>,它会被转换为空字符串。</p>
+<div class="warning">
+<p><strong>警告:</strong>如果一个元素为 <code>undefined</code> 或 <code>null</code>,它会被转换为空字符串。</p>
</div>
<h2 id="Examples">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/length/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/length/index.html
index 1ee4198226..6731fc1d14 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/length/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/length/index.html
@@ -82,7 +82,7 @@ function printEntries(arr) {
<p>下面的例子中,通过数组下标遍历数组元素,并把每个元素的值修改为原值的2倍。</p>
-<pre class="brush: js line-numbers language-js">var numbers = [1, 2, 3, 4, 5];
+<pre class="brush: js">var numbers = [1, 2, 3, 4, 5];
var length = numbers.length;
for (var i = 0; i &lt; length; i++) {
numbers[i] *= 2;
@@ -93,7 +93,7 @@ for (var i = 0; i &lt; length; i++) {
<p>下面的例子中,如果数组长度大于 3,则把该数组的长度截断为 3 。</p>
-<pre class="brush: js line-numbers language-js">var numbers = [1, 2, 3, 4, 5];
+<pre class="brush: js">var numbers = [1, 2, 3, 4, 5];
if (numbers.length &gt; 3) {
numbers.length = 3;
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html
index d52d65e268..348d717a0f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html
@@ -74,7 +74,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/Reduce
<p>回调函数第一次执行时,<code>accumulator</code> 和<code>currentValue</code>的取值有两种情况:如果调用<code>reduce()</code>时提供了<code>initialValue</code>,<code>accumulator</code>取值为<code>initialValue</code>,<code>currentValue</code>取数组中的第一个值;如果没有提供 <code>initialValue</code>,那么<code>accumulator</code>取数组中的第一个值,<code>currentValue</code>取数组中的第二个值。</p>
<div class="note">
-<p><strong>注意:</strong>如果没有提供<code>initialValue</code>,reduce 会从索引1的地方开始执行 callback 方法,跳过第一个索引。如果提供<code>initialValue</code>,从索引0开始。</p>
+<p><strong>备注:</strong>如果没有提供<code>initialValue</code>,reduce 会从索引1的地方开始执行 callback 方法,跳过第一个索引。如果提供<code>initialValue</code>,从索引0开始。</p>
</div>
<p>如果数组为空且没有提供<code>initialValue</code>,会抛出{{jsxref("TypeError")}} 。如果数组仅有一个元素(无论位置如何)并且没有提供<code>initialValue</code>, 或者有提供<code>initialValue</code>但是数组为空,那么此唯一值将被返回并且<code>callback</code>不会被执行。</p>
@@ -450,8 +450,8 @@ var allbooks = friends.reduce(function(prev, curr) {
<h3 id="数组去重">数组去重</h3>
-<div class="blockIndicator note">
-<p>注意: 如果你正在使用一个可以兼容{{jsxref("Set")}} 和 {{jsxref("Array.from()")}} 的环境, 你可以使用<code>let orderedArray = Array.from(new Set(myArray));</code> 来获得一个相同元素被移除的数组。</p>
+<div class="note">
+<p><strong>备注:</strong> 如果你正在使用一个可以兼容{{jsxref("Set")}} 和 {{jsxref("Array.from()")}} 的环境, 你可以使用<code>let orderedArray = Array.from(new Set(myArray));</code> 来获得一个相同元素被移除的数组。</p>
</div>
<pre class="brush: js">let myArray = ['a', 'b', 'a', 'b', 'c', 'e', 'e', 'c', 'd', 'd', 'd', 'd']
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/reduceright/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/reduceright/index.html
index 793a4fd3a3..8517f6e749 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/reduceright/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/reduceright/index.html
@@ -27,28 +27,26 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/ReduceRight
<dl>
<dt><code>callback</code></dt>
<dd>一个回调函数,用于操作数组中的每个元素,它可接受四个参数:
- <dl>
- <dt><code>accumulator</code></dt>
- <dd>累加器:上一次调用回调函数时,回调函数返回的值。首次调用回调函数时,如果 <code>initialValue</code> 存在,累加器即为 <code>initialValue</code>,否则须为数组中的最后一个元素(详见下方 <code>initialValue</code> 处相关说明)。</dd>
- <dt><code>currentValue</code></dt>
- <dd>当前元素:当前被处理的元素。</dd>
- <dt><code>index</code>{{optional_inline}}</dt>
- <dd>数组中当前被处理的元素的索引。</dd>
- <dt><code>array</code>{{optional_inline}}</dt>
- <dd>调用 <code>reduceRight()</code> 的数组。</dd>
- </dl>
+ <dl>
+ <dt><code>accumulator</code></dt>
+ <dd>累加器:上一次调用回调函数时,回调函数返回的值。首次调用回调函数时,如果 <code>initialValue</code> 存在,累加器即为 <code>initialValue</code>,否则须为数组中的最后一个元素(详见下方 <code>initialValue</code> 处相关说明)。</dd>
+ <dt><code>currentValue</code></dt>
+ <dd>当前元素:当前被处理的元素。</dd>
+ <dt><code>index</code>{{optional_inline}}</dt>
+ <dd>数组中当前被处理的元素的索引。</dd>
+ <dt><code>array</code>{{optional_inline}}</dt>
+ <dd>调用 <code>reduceRight()</code> 的数组。</dd>
+ </dl>
</dd>
<dt><code>initialValue</code>{{optional_inline}} </dt>
<dd>首次调用 <code>callback</code> 函数时,累加器 <code>accumulator</code> 的值。如果未提供该初始值,则将使用数组中的最后一个元素,并跳过该元素。如果不给出初始值,则需保证数组不为空。<br>
否则,在空数组上调用 <code>reduce</code> 或 <code>reduceRight</code> 且未提供初始值(例如 <code>[].reduce( (acc, cur, idx, arr) =&gt; {} )</code> )的话,会导致类型错误 <code><a href="/zh-CN/docs/Web/JavaScript/Reference/Errors/Reduce_of_empty_array_with_no_initial_value">TypeError: reduce of empty array with no initial value</a></code>。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
- </dt>
- <dd>
- <p>执行之后的返回值。</p>
- </dd>
</dl>
+<h3 id="返回值">返回值</h3>
+
+<p>执行之后的返回值。</p>
+
<h2 id="描述">描述</h2>
<p><code>reduceRight</code> 为数组中每个元素调用一次 <code>callback</code> 回调函数,但是数组中被删除的索引或从未被赋值的索引会跳过。回调函数接受四个参数:初始值(或上次调用回调的返回值)、当前元素值、当前索引,以及调用迭代的当前数组。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html
index b20d27f664..2d44c8dc8d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html
@@ -58,8 +58,8 @@ var citrus = fruits.slice(1, 3);
// citrus contains ['Orange','Lemon']
</pre>
-<div class="standardNoteBlock">
-<p class="syntaxbox"><strong>译者注:citrus</strong> <em>[n.]</em> 柑橘类果实</p>
+<div class="callout">
+<p><strong>标注:</strong> citrus <em>[n.]</em> 柑橘类果实——译注</p>
</div>
<h3 id="使用_slice">使用 <code>slice</code></h3>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/some/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/some/index.html
index a0f5695dfb..7d5102b182 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/some/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/some/index.html
@@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/some
<p><code><strong>some()</strong></code> 方法测试数组中是不是至少有1个元素通过了被提供的函数测试。它返回的是一个Boolean类型的值。</p>
<div class="note">
-<p><strong>注意:</strong>如果用一个空数组进行测试,在任何情况下它返回的都是<code>false</code>。</p>
+<p><strong>备注:</strong>如果用一个空数组进行测试,在任何情况下它返回的都是<code>false</code>。</p>
</div>
<div>{{EmbedInteractiveExample("pages/js/array-some.html")}}</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/sort/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/sort/index.html
index 49a4339d87..51bb55254e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/sort/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/sort/index.html
@@ -100,7 +100,7 @@ console.log(numbers);
<p>对象可以按照某个属性排序:</p>
-<pre class="brush: js line-numbers language-js">var items = [
+<pre class="brush: js">var items = [
{ name: 'Edward', value: 21 },
{ name: 'Sharpe', value: 37 },
{ name: 'And', value: 45 },
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
index 92e3920d88..cbfc745614 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
@@ -53,8 +53,8 @@ iterator.next(); // Object { value: "e", done: false }
iterator.next(); // Object { value: undefined, done: true }
iterator.next().value; // undefined</pre>
-<div class="blockIndicator warning">
-<p>一次性:数组迭代器是一次性的,或者说临时对象</p>
+<div class="warning">
+<p><strong>警告:</strong>一次性:数组迭代器是一次性的,或者说临时对象</p>
</div>
<p>例子:</p>
@@ -80,8 +80,8 @@ arr[1] = 'n';
iterator.next().value; // "n"
</pre>
-<div class="blockIndicator note">
-<p>如果数组中元素改变,那么迭代器的值也会改变</p>
+<div class="note">
+<p><strong>备注:</strong>如果数组中元素改变,那么迭代器的值也会改变</p>
</div>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/asyncfunction/index.html b/files/zh-cn/web/javascript/reference/global_objects/asyncfunction/index.html
index da8987cdfd..58e175eb9b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/asyncfunction/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/asyncfunction/index.html
@@ -39,7 +39,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/AsyncFunction
<p>传递给 <code>AsyncFunction</code> 构造函数的所有参数,都会成为新函数中的变量,变量的名称和定义顺序与各参数相同。 </p>
<div class="note">
-<p><strong>注意:使用</strong> <code>AsyncFunction</code> 构造函数创建的{{jsxref("Statements/async_function", "异步函数")}} 并不会在当前上下文中创建闭包,其作用域始终是全局的。因此运行的时候只能访问它们自己的本地变量和全局变量,但不能访问构造函数被调用的那个作用域中的变量。这是它与 {{jsxref("Global_Objects/eval", "eval")}} 不同的地方。</p>
+<p><strong>备注:</strong> <code>AsyncFunction</code> 构造函数创建的{{jsxref("Statements/async_function", "异步函数")}} 并不会在当前上下文中创建闭包,其作用域始终是全局的。因此运行的时候只能访问它们自己的本地变量和全局变量,但不能访问构造函数被调用的那个作用域中的变量。这是它与 {{jsxref("Global_Objects/eval", "eval")}} 不同的地方。</p>
</div>
<p>调用 <code>AsyncFunction</code> 构造函数时可以省略 <code>new</code>,其效果是一样的。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/atomics/notify/index.html b/files/zh-cn/web/javascript/reference/global_objects/atomics/notify/index.html
index 6459625463..7682af0a7b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/atomics/notify/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/atomics/notify/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Atomics/notify
<p>静态方法 <code><strong>Atomics</strong></code><strong><code>.notify()</code></strong> 提醒一些在等待队列中休眠的代理。</p>
<div class="note">
-<p><strong>注意:</strong>本操作仅在共享的 {{jsxref("Int32Array")}} 下可用。</p>
+<p><strong>备注:</strong>本操作仅在共享的 {{jsxref("Int32Array")}} 下可用。</p>
</div>
<h2 id="语法">语法</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/atomics/wait/index.html b/files/zh-cn/web/javascript/reference/global_objects/atomics/wait/index.html
index 14696990a1..ab56ef2512 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/atomics/wait/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/atomics/wait/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Atomics/wait
<p>静态方法 <code><strong>Atomics</strong></code><strong><code>.wait()</code></strong> 确保了一个在 {{jsxref("Int32Array")}} 数组中给定位置的值没有发生变化、仍然是给定的值时进程将会睡眠,直到被唤醒或超时。该方法返回一个字符串,值为<code>"ok"</code>, <code>"not-equal"</code>, 或 <code>"timed-out"</code> 之一。</p>
<div class="note">
-<p><strong>注意:</strong> 这项操作仅允许同一个共享内存的 {{jsxref("Int32Array")}} 配合使用并且无法运行在主线程中。</p>
+<p><strong>备注:</strong>这项操作仅允许同一个共享内存的 {{jsxref("Int32Array")}} 配合使用并且无法运行在主线程中。</p>
</div>
<h2 id="语法">语法</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/bigint/bigint/index.html b/files/zh-cn/web/javascript/reference/global_objects/bigint/bigint/index.html
index 7e7a2923f6..cec0e705b2 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/bigint/bigint/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/bigint/bigint/index.html
@@ -19,8 +19,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt/BigInt
<dd>被创建的对象的数值。 可以是字符串或整数。</dd>
</dl>
-<div class="blockIndicator note">
-<p><strong>Note</strong>: <code>BigInt()</code> 不与 {{JSxRef("Operators/new", "new")}} 运算符一起使用。</p>
+<div class="note">
+<p><strong>备注:</strong>: <code>BigInt()</code> 不与 {{JSxRef("Operators/new", "new")}} 运算符一起使用。</p>
</div>
<h2 id="例子">例子</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html b/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html
index 9e52874364..1ac067ad98 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html
@@ -72,8 +72,8 @@ bigN * -1n
<p><code>/</code> 操作符对于整数的运算也没问题。可是因为这些变量是 <code>BigInt</code> 而不是 <code>BigDecimal</code> ,该操作符结果会向零取整,也就是说不会返回小数部分。</p>
-<div class="blockIndicator warning">
-<p>当使用 <code>BigInt</code> 时,带小数的运算会被取整。</p>
+<div class="warning">
+<p><strong>警告:</strong>当使用 <code>BigInt</code> 时,带小数的运算会被取整。</p>
</div>
<pre class="brush: js">const expected = 4n / 2n;
diff --git a/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html b/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html
index c056ac16eb..48f1d2adfc 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html
@@ -13,22 +13,17 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt64Array
<p><a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/BigInt64Array/BigInt64Array"><code>BigInt64Array()</code></a></p>
-<p>     添加一个新的<code>BigInt64Array</code>对象。</p>
+<p>添加一个新的<code>BigInt64Array</code>对象。</p>
<h2 id="静态属性">静态属性</h2>
<dl>
<dt>{{jsxref("TypedArray.BYTES_PER_ELEMENT", "BigInt64Array.BYTES_PER_ELEMENT")}}</dt>
-</dl>
-
-<p>   返回一个元素大小的数字值,<code>BigInt64Array</code>返回 <code>8</code></p>
-
-<dl>
+ <dd>返回一个元素大小的数字值,<code>BigInt64Array</code>返回 <code>8</code></dd>
<dt>{{jsxref("TypedArray.name", "BigInt64Array.name")}}</dt>
+ <dd>返回构造函数名字的字符串值,如果是<code>BigInt64Array</code> 的话,就是"BigInt64Array".</dd>
</dl>
-<p>   返回构造函数名字的字符串值,如果是<code>BigInt64Array</code> 的话,就是"BigInt64Array".</p>
-
<h2 id="实例属性">实例属性</h2>
<dl>
@@ -39,8 +34,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt64Array
<dt>{{jsxref("TypedArray.prototype.byteOffset", "BigInt64Array.prototype.byteOffset")}}</dt>
<dd>返回 <code>BigInt64Array</code> 从{jsxref(“ArrayBuffer”)}}开始的偏移量(以字节为单位)。这在构造时已被固定的,因此是只读。</dd>
<dt>{{jsxref("TypedArray.prototype.length", "BigInt64Array.prototype.length")}}</dt>
- <dd>                
- <p>返回 <code>BigInt64Array</code> 中被 保留的元 素个数。这  在构造时是固定的,因此是只读 。  <strong> </strong></p>
+ <dd>
+ <p>返回 <code>BigInt64Array</code> 中被保留的元素个数。这在构造时是固定的,因此是只读。</p>
</dd>
</dl>
@@ -54,13 +49,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt64Array
<dt>{{jsxref("TypedArray.every", "BigInt64Array.prototype.every()")}}</dt>
<dd>测试数组中的所有元素是否通过函数提供的测试。另请参见{jsxref(“Array.prototype.every()")}}.</dd>
<dt>{{jsxref("TypedArray.fill", "BigInt64Array.prototype.fill()")}}</dt>
- <dd>
- <div class="trans-left">
- <div class="trans-input-wrap">
- <div class="input-wrap">用静态值填充从起始索引到结束索引的数组的所有元素。另请参见{jsxref(“Array.prototype.fill()")}}</div>
- </div>
- </div>
- </dd>
+ <dd>用静态值填充从起始索引到结束索引的数组的所有元素。另请参见{jsxref(“Array.prototype.fill()")}}</dd>
<dt>{{jsxref("TypedArray.filter", "BigInt64Array.prototype.filter()")}}</dt>
<dd>使用提供的筛选函数为其返回true的数组的所有元素创建一个新数组。另请参见{jsxref(“Array.prototype.filter()")}}</dd>
<dt>{{jsxref("TypedArray.find", "BigInt64Array.prototype.find()")}}</dt>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/boolean/index.html b/files/zh-cn/web/javascript/reference/global_objects/boolean/index.html
index 4101843056..51e5f1bef8 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/boolean/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/boolean/index.html
@@ -50,8 +50,8 @@ var s = new Boolean(myString); // true
<p>最后,不要在应该使用基本类型布尔值的地方使用 <code>Boolean</code> 对象。</p>
-<div class="blockIndicator note">
-<p><strong>注意:</strong>当将非标准属性<a href="/zh-CN/docs/Web/API/Document#Properties">document.all</a>用作此构造函数的参数时,结果是值为<code>false</code>的布尔对象。 此属性是旧属性,是非标准属性,不应使用。</p>
+<div class="note">
+<p><strong>备注:</strong>当将非标准属性<a href="/zh-CN/docs/Web/API/Document#Properties">document.all</a>用作此构造函数的参数时,结果是值为<code>false</code>的布尔对象。 此属性是旧属性,是非标准属性,不应使用。</p>
</div>
<h2 id="构造器">构造器</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/getfloat32/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/getfloat32/index.html
index b43d4df38c..8d6ac933cf 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/dataview/getfloat32/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/getfloat32/index.html
@@ -29,9 +29,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getFloat32
<h3 id="返回">返回</h3>
-<dl>
- <dd>一个带符号的32位浮点数。</dd>
-</dl>
+<p>一个带符号的32位浮点数。</p>
<h3 id="抛出错误">抛出错误</h3>
@@ -42,9 +40,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getFloat32
<h2 id="说明">说明</h2>
-<dl>
- <dd>没有对齐约束; 多字节值可以从任何偏移处获取。</dd>
-</dl>
+<p>没有对齐约束; 多字节值可以从任何偏移处获取。</p>
<h2 id="例子">例子</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/getfloat64/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/getfloat64/index.html
index 885acb9421..f6e9ec4c7d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/dataview/getfloat64/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/getfloat64/index.html
@@ -26,9 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getFloat64
<h3 id="返回">返回</h3>
-<dl>
- <dd>一个双精度浮点型64位数.</dd>
-</dl>
+<p>一个双精度浮点型64位数.</p>
<h3 id="抛出错误">抛出错误</h3>
@@ -39,9 +37,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getFloat64
<h2 id="描述">描述</h2>
-<dl>
- <dd>没有对齐约束; 多字节值可以从任何偏移量获取.</dd>
-</dl>
+<p>没有对齐约束; 多字节值可以从任何偏移量获取.</p>
<h2 id="例子">例子</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/getint16/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/getint16/index.html
index 060f88b722..eefe63841f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/dataview/getint16/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/getint16/index.html
@@ -29,9 +29,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getInt16
<h3 id="返回">返回</h3>
-<dl>
- <dd>一个短整型16位数.</dd>
-</dl>
+<p>一个短整型16位数.</p>
<h3 id="抛出错误">抛出错误</h3>
@@ -42,9 +40,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getInt16
<h2 id="描述">描述</h2>
-<dl>
- <dd> 没有对齐约束; 多字节值可以从任何偏移量获取.</dd>
-</dl>
+<p> 没有对齐约束; 多字节值可以从任何偏移量获取.</p>
<h2 id="例子">例子</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/getint32/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/getint32/index.html
index 616d2b1977..d9bb1e5136 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/dataview/getint32/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/getint32/index.html
@@ -26,9 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getInt32
<h3 id="返回">返回</h3>
-<dl>
- <dd>一个长整型32位数.</dd>
-</dl>
+<p>一个长整型32位数.</p>
<h3 id="抛出错误">抛出错误</h3>
@@ -39,9 +37,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getInt32
<h2 id="描述">描述</h2>
-<dl>
- <dd> 没有对齐约束; 多字节值可以从任何偏移量获取.</dd>
-</dl>
+<p> 没有对齐约束; 多字节值可以从任何偏移量获取.</p>
<h2 id="例子">例子</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/getint8/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/getint8/index.html
index 0a8a5da6a2..2de057b837 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/dataview/getint8/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/getint8/index.html
@@ -34,9 +34,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getInt8
<h2 id="描述">描述</h2>
-<dl>
- <dd> 没有对齐约束; 多字节值可以从任何偏移量获取.</dd>
-</dl>
+<p> 没有对齐约束; 多字节值可以从任何偏移量获取.</p>
<h2 id="例子">例子</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint16/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint16/index.html
index 6ed5b252da..3b7d2e5c56 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint16/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint16/index.html
@@ -29,9 +29,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getUint16
<h3 id="返回">返回</h3>
-<dl>
- <dd>一个无符号短整型16位数.</dd>
-</dl>
+<p>一个无符号短整型16位数.</p>
<h3 id="抛出错误">抛出错误</h3>
@@ -42,9 +40,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getUint16
<h2 id="描述">描述</h2>
-<dl>
- <dd>没有对齐约束; 多字节值可以从任何偏移量获取.</dd>
-</dl>
+<p>没有对齐约束; 多字节值可以从任何偏移量获取.</p>
<h2 id="例子">例子</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint32/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint32/index.html
index 3affb0312a..8287ff8463 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint32/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint32/index.html
@@ -26,9 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getUint32
<h3 id="返回">返回</h3>
-<dl>
- <dd>一个无符号长整型32位数.</dd>
-</dl>
+<p>一个无符号长整型32位数.</p>
<h3 id="抛出错误">抛出错误</h3>
@@ -39,9 +37,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getUint32
<h2 id="描述">描述</h2>
-<dl>
- <dd>没有对齐约束; 多字节值可以从任何偏移量获取.</dd>
-</dl>
+<p>没有对齐约束; 多字节值可以从任何偏移量获取.</p>
<h2 id="例子">例子</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint8/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint8/index.html
index 4e26ade311..0d12718d1c 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint8/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/getuint8/index.html
@@ -34,9 +34,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getUint8
<h2 id="描述">描述</h2>
-<dl>
- <dd> 没有对齐约束; 多字节值可以从任何偏移量获取.</dd>
-</dl>
+<p> 没有对齐约束; 多字节值可以从任何偏移量获取.</p>
<h2 id="例子">例子</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/setint8/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/setint8/index.html
index dc7c7b30e4..7938a2183a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/dataview/setint8/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/setint8/index.html
@@ -22,13 +22,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/setInt8
<dd>偏移量,从头开始计算,单位为字节</dd>
<dt>value</dt>
<dd>设置的整数值</dd>
- <dt>
- <h3 id="返回">返回</h3>
-
- <p>{{jsxref("undefined")}}.</p>
- </dt>
</dl>
+<h3 id="返回">返回</h3>
+
+<p>{{jsxref("undefined")}}.</p>
+
<h3 id="抛出的错误">抛出的错误</h3>
<dl>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/date/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/date/index.html
index f97d377482..bc5f87a4aa 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/date/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/date/index.html
@@ -19,8 +19,8 @@ new Date(<var>dateString</var>)
new Date(<var>year</var>, <var>monthIndex</var> [, <var>day</var> [, <var>hours</var> [, <var>minutes</var> [, <var>seconds</var> [, <var>milliseconds</var>]]]]])
</pre>
-<div class="blockIndicator note">
-<p><strong>Note:</strong> The only correct way to instantiate a new <code>Date</code> object is by using the {{jsxref("new")}} operator. If you simply call the <code>Date</code> object directly, such as <code>now = Date()</code>, the returned value is a string rather than a <code>Date</code> object.</p>
+<div class="note">
+<p><strong>备注:</strong> The only correct way to instantiate a new <code>Date</code> object is by using the {{jsxref("new")}} operator. If you simply call the <code>Date</code> object directly, such as <code>now = Date()</code>, the returned value is a string rather than a <code>Date</code> object.</p>
</div>
<h3 id="Parameters">Parameters</h3>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html
index 7e7e429c3d..0e86ba5d6e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getDate
<h2 id="Syntax">语法</h2>
-<pre class="syntaxbox language-html">dateObj.getDate()</pre>
+<pre class="brush: js">dateObj.getDate()</pre>
<h2 id="Parameters">参数</h2>
@@ -29,7 +29,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getDate
<p>下面第二条语句将值25赋给 day 变量,该值基于日期对象 <code>Xmax95</code>的值。</p>
-<pre class="brush:js language-js">var Xmas95 = new Date("December 25, 1995 23:15:00");
+<pre class="brush:js">var Xmas95 = new Date("December 25, 1995 23:15:00");
var day = Xmas95.getDate();
alert(day); // 25</pre>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html
index cc3a17b6c4..e299df4666 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getDay
<h2 id="Syntax">语法</h2>
-<pre class="syntaxbox language-html"><em>dateObj</em>.getDay()
+<pre class="brush: js"><em>dateObj</em>.getDay()
</pre>
<h3 id="Description">返回值</h3>
@@ -26,13 +26,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getDay
<p>下面第二条语句,基于{{jsxref("Date")}}对象 <code>Xmas95</code> 的值,把 1 赋值给 <code>weekday</code>。也就是说1995年12月25日是星期一。</p>
-<pre class="brush:js language-js">var Xmas95 = new Date("December 25, 1995 23:15:30");
+<pre class="brush:js">var Xmas95 = new Date("December 25, 1995 23:15:30");
var weekday = Xmas95.getDay();
console.log(weekday); // 1</pre>
-<div class="blockIndicator note">
-<p>注意:如果需要,可以使用{{jsxref("DateTimeFormat", "Intl.DateTimeFormat")}}与一个额外的<code>options</code> 参数,从而返回这天的全称(如<code>"Monday"</code>).使用此方法,结果会更加国际化:</p>
+<div class="note">
+<p><strong>备注:</strong>如果需要,可以使用{{jsxref("DateTimeFormat", "Intl.DateTimeFormat")}}与一个额外的<code>options</code> 参数,从而返回这天的全称(如<code>"Monday"</code>).使用此方法,结果会更加国际化:</p>
<pre class="brush: js"><code>var options = { weekday: 'long'};
console.log(new Intl.DateTimeFormat('en-US', options).format(Xmas95));
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html
index 2046e96d75..abd1ea2fd4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getHours
<h2 id="语法">语法</h2>
-<pre class="syntaxbox language-html"><var>dateObj</var>.getHours()</pre>
+<pre class="brush: js"><var>dateObj</var>.getHours()</pre>
<h3 id="Parameters">参数</h3>
@@ -29,7 +29,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getHours
<p>下面第二条语句,基于日期对象 <code>Xmas95 </code>的值,把 23 赋值给了变量 <code>hours。</code></p>
-<pre class="brush:js language-js">var Xmas95 = new Date("December 25, 1995 23:15:00");
+<pre class="brush:js">var Xmas95 = new Date("December 25, 1995 23:15:00");
var hours = Xmas95.getHours();
alert(hours); // 23</pre>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getmilliseconds/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getmilliseconds/index.html
index 231cf2d7f9..40b3ac6eb5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/getmilliseconds/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/getmilliseconds/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds
<h2 id="Syntax">语法</h2>
-<pre class="syntaxbox language-html"><var>dateObj</var>.getMilliseconds()</pre>
+<pre class="brush: js"><var>dateObj</var>.getMilliseconds()</pre>
<h3 id="Parameters">参数</h3>
@@ -29,7 +29,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds
<p>下例中,将当前时间的毫秒数赋值给变量 <code>ms</code>。</p>
-<pre class="brush: js language-js">var ms;
+<pre class="brush: js">var ms;
Today = new Date();
ms = Today.getMilliseconds();</pre>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getminutes/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getminutes/index.html
index 27adb1a179..7ebdff046e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/getminutes/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/getminutes/index.html
@@ -11,7 +11,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMinutes
<h2 id="Syntax">语法</h2>
-<pre class="syntaxbox language-html">dateObj.getMinutes()</pre>
+<pre class="brush: js">dateObj.getMinutes()</pre>
<h3 id="Parameters">参数</h3>
@@ -27,7 +27,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMinutes
<p>下例中,第二行语句运行过后,变量 <code>minutes </code>的值为15,也就是说 <code>Xmas95 </code>这个日期对象的值为某时15分某秒。</p>
-<pre class="brush:js language-js">var Xmas95 = new Date("December 25, 1995 23:15:00");
+<pre class="brush:js">var Xmas95 = new Date("December 25, 1995 23:15:00");
var minutes = Xmas95.getMinutes();</pre>
<p><strong>规范</strong></p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html
index ce008a4ba0..f4baba5270 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html
@@ -20,7 +20,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMonth
<h2 id="Syntax">语法</h2>
-<pre class="syntaxbox language-html">dateObj.getMonth()</pre>
+<pre class="brush: js">dateObj.getMonth()</pre>
<h3 id="Parameters">参数</h3>
@@ -36,7 +36,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMonth
<p>下面第二条语句,基于 {{jsxref("Date")}} 对象 Xmas95 的值,把11赋值给变量 <code>month。</code></p>
-<pre class="brush:js language-js">var Xmas95 = new Date('December 25, 1995 23:15:30');
+<pre class="brush:js">var Xmas95 = new Date('December 25, 1995 23:15:30');
var month = Xmas95.getMonth();
console.log(month); // 11</pre>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getseconds/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getseconds/index.html
index 4543e5c2b2..dbd4590d22 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/getseconds/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/getseconds/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getSeconds
<h2 id="Syntax">语法</h2>
-<pre class="syntaxbox language-html">dateObj.getSeconds()</pre>
+<pre class="brush: js">dateObj.getSeconds()</pre>
<h3 id="Parameters">参数</h3>
@@ -29,13 +29,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getSeconds
<p>下面第二条语句,基于日期对象 <code>Xmas95</code> 的值,把 30 赋值给变量 <code>secs</code>。</p>
-<pre class="brush:js language-js">var Xmas95 = new Date("December 25, 1995 23:15:30");
+<pre class="brush:js">var Xmas95 = new Date("December 25, 1995 23:15:30");
var secs = Xmas95.getSeconds();</pre>
-<div class="line-number"> </div>
-
-<div class="line-number"> </div>
-
<h2 id="规范">规范</h2>
<table class="standard-table">
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/gettimezoneoffset/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/gettimezoneoffset/index.html
index 7f2d81f94e..f85174cd35 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/gettimezoneoffset/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/gettimezoneoffset/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset
<h2 id="Syntax">语法</h2>
-<pre class="syntaxbox language-html">dateObj.getTimezoneOffset()</pre>
+<pre class="brush: js">dateObj.getTimezoneOffset()</pre>
<h3 id="Parameters">参数</h3>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/index.html
index d7dd9f80b5..19b33d4de4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/index.html
@@ -24,7 +24,7 @@ new Date(<var>dateString</var>);
new Date(<var>year</var>, <var>monthIndex</var> [, <var>day</var> [, <var>hours</var> [, <var>minutes</var> [, <var>seconds</var> [, <var>milliseconds</var>]]]]]);</pre>
<div class="note">
-<p>创建一个新<code>Date</code>对象的唯一方法是通过{{jsxref("Operators/new", "new")}} 操作符,例如:<code>let now = new Date();</code><br>
+<p><strong>备注:</strong>创建一个新<code>Date</code>对象的唯一方法是通过{{jsxref("Operators/new", "new")}} 操作符,例如:<code>let now = new Date();</code><br>
若将它作为常规函数调用(即不加 {{jsxref("Operators/new", "new")}} 操作符),将返回一个字符串,而非 <code>Date</code> 对象。 </p>
</div>
@@ -41,10 +41,10 @@ new Date(<var>year</var>, <var>monthIndex</var> [, <var>day</var> [, <var>hours<
<dl>
<dt><code>value</code></dt>
<dd>一个 Unix 时间戳(<a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_16">Unix Time Stamp</a>),它是一个整数值,表示自1970年1月1日00:00:00 UTC(the Unix epoch)以来的毫秒数,忽略了闰秒。请注意大多数 Unix 时间戳功能仅精确到最接近的秒。</dd>
- <dt><h4 id="时间戳字符串">时间戳字符串</h4><code>dateString</code></dt>
+ <dt>时间戳字符串 <code>dateString</code></dt>
<dd>表示日期的字符串值。该字符串应该能被 {{jsxref("Date.parse()")}} 正确方法识别(即符合 <a href="http://tools.ietf.org/html/rfc2822#page-14">IETF-compliant RFC 2822 timestamps</a> 或 <a href="http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15">version of ISO8601</a>)。
<div class="note">
- <p><strong>注意:</strong> 由于浏览器之间的差异与不一致性,强烈不推荐使用<code>Date</code>构造函数来解析日期字符串 (或使用与其等价的<code>Date.parse</code>)。对 RFC 2822 格式的日期仅有约定俗成的支持。 对 ISO 8601 格式的支持中,仅有日期的串 (例如 "1970-01-01") 会被处理为 UTC 而不是本地时间,与其他格式的串的处理不同。</p>
+ <p><strong>备注:</strong>由于浏览器之间的差异与不一致性,强烈不推荐使用<code>Date</code>构造函数来解析日期字符串 (或使用与其等价的<code>Date.parse</code>)。对 RFC 2822 格式的日期仅有约定俗成的支持。 对 ISO 8601 格式的支持中,仅有日期的串 (例如 "1970-01-01") 会被处理为 UTC 而不是本地时间,与其他格式的串的处理不同。</p>
</div>
</dd>
</dl>
@@ -73,15 +73,15 @@ new Date(<var>year</var>, <var>monthIndex</var> [, <var>day</var> [, <var>hours<
<h2 id="使用注释">使用注释</h2>
<div class="note">
-<p><strong>注意 参数</strong><code>monthIndex</code> 是从“0”开始计算的,这就意味着一月份为“0”,十二月份为“11”。</p>
+<p><strong>备注:</strong>参数<code>monthIndex</code> 是从“0”开始计算的,这就意味着一月份为“0”,十二月份为“11”。</p>
</div>
<div class="note">
-<p><strong>注意:</strong>当Date作为构造函数调用并传入多个参数时,如果数值大于合理范围时(如月份为 13 或者分钟数为 70),相邻的数值会被调整。比如 new Date(2013, 13, 1)等于new Date(2014, 1, 1),它们都表示日期2014-02-01(注意月份是从0开始的)。其他数值也是类似,new Date(2013, 2, 1, 0, 70)等于new Date(2013, 2, 1, 1, 10),都表示同一个时间:<code>2013-03-01T01:10:00</code>。</p>
+<p><strong>备注:</strong>当Date作为构造函数调用并传入多个参数时,如果数值大于合理范围时(如月份为 13 或者分钟数为 70),相邻的数值会被调整。比如 new Date(2013, 13, 1)等于new Date(2014, 1, 1),它们都表示日期2014-02-01(注意月份是从0开始的)。其他数值也是类似,new Date(2013, 2, 1, 0, 70)等于new Date(2013, 2, 1, 1, 10),都表示同一个时间:<code>2013-03-01T01:10:00</code>。</p>
</div>
<div class="note">
-<p><strong>注意:</strong>当Date作为构造函数调用并传入多个参数时,所定义参数代表的是当地时间。如果需要使用世界协调时 UTC,使用 <code>new Date({{jsxref("Date.UTC()", "Date.UTC(...)")}})</code> 和相同参数。</p>
+<p><strong>备注:</strong>当Date作为构造函数调用并传入多个参数时,所定义参数代表的是当地时间。如果需要使用世界协调时 UTC,使用 <code>new Date({{jsxref("Date.UTC()", "Date.UTC(...)")}})</code> 和相同参数。</p>
</div>
<h2 id="简介">简介</h2>
@@ -112,7 +112,7 @@ new Date(<var>year</var>, <var>monthIndex</var> [, <var>day</var> [, <var>hours<
<dt>{{jsxref("Date.parse()")}}</dt>
<dd>解析一个表示日期的字符串,并返回从 1970-1-1 00:00:00 所经过的毫秒数。
<div class="note">
- <p><strong>注意:</strong> 由于浏览器差异和不一致,强烈建议不要使用<code>Date.parse</code>解析字符串。</p>
+ <p><strong>备注:</strong> 由于浏览器差异和不一致,强烈建议不要使用<code>Date.parse</code>解析字符串。</p>
</div>
</dd>
<dt>{{jsxref("Date.UTC()")}}</dt>
@@ -141,7 +141,7 @@ new Date(<var>year</var>, <var>monthIndex</var> [, <var>day</var> [, <var>hours<
<p>下例展示了用来创建一个日期对象的多种方法。</p>
<div class="note">
-<p><strong>注意:</strong> 由于浏览器差异和不一致性,强烈建议不要使用<code>Date</code>构造函数(和<code>Date.parse</code>,它们是等效的)解析日期字符串。</p>
+<p><strong>备注:</strong> 由于浏览器差异和不一致性,强烈建议不要使用<code>Date</code>构造函数(和<code>Date.parse</code>,它们是等效的)解析日期字符串。</p>
</div>
<pre class="brush: js">var today = new Date();
@@ -197,7 +197,7 @@ yourFunctionReturn = printElapsedTime(yourFunction);
</pre>
<div class="note">
-<p>注意:在支持 {{domxref("window.performance", "Web Performance API")}} 的高精细度(high-resolution)时间功能的浏览器中,{{domxref("Performance.now()")}} 提供的所经过的时间比 {{jsxref("Date.now()")}} 更加可靠、精确。</p>
+<p><strong>备注:</strong>在支持 {{domxref("window.performance", "Web Performance API")}} 的高精细度(high-resolution)时间功能的浏览器中,{{domxref("Performance.now()")}} 提供的所经过的时间比 {{jsxref("Date.now()")}} 更加可靠、精确。</p>
</div>
<h3 id="获取自_Unix_起始时间以来经过的秒数">获取自 Unix 起始时间以来经过的秒数</h3>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html
index eef2f86594..d479715f29 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html
@@ -38,9 +38,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/parse
<h3 id="返回值">返回值</h3>
-<dl>
- <dd>一个表示从1970-1-1 00:00:00 UTC到给定日期字符串所表示时间的毫秒数的数值。如果参数不能解析为一个有效的日期,则返回{{jsxref("NaN")}}。</dd>
-</dl>
+<p>一个表示从1970-1-1 00:00:00 UTC到给定日期字符串所表示时间的毫秒数的数值。如果参数不能解析为一个有效的日期,则返回{{jsxref("NaN")}}。</p>
<h2 id="Description">描述</h2>
@@ -70,22 +68,22 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/parse
<p>但是, 在如 ECMA-262 规范中定义的情况,如果因为无效值而导致日期字符串不能被识别为 ISO 格式时,根据浏览器和给定的值不同,返回值可以是,也可以不是 {{jsxref("NaN")}} 。比如:</p>
-<pre class="brush: js line-numbers language-js">// 包含无效值的非 ISO 格式字符串
+<pre class="brush: js">// 包含无效值的非 ISO 格式字符串
new Date('23/25/2014');</pre>
<p>在 Firefox 30 中会被识别为本地时区的2015年12月25日,而在 Safari 7 中则是无效日期。但是,如果字符串被识别为 ISO 格式并且包含无效值,则在所有遵循 ES5 或者更新标准的浏览器中都会返回 {{jsxref("NaN")}} 。</p>
-<pre class="brush: js line-numbers language-js">// 包含无效值的 ISO 格式字符串
+<pre class="brush: js">// 包含无效值的 ISO 格式字符串
new Date('2014-25-23').toISOString();
// 在所有遵循 ES5的浏览器中返回 "RangeError: invalid date"</pre>
<p>SpiderMonkey 的引擎策略可以在 <a href="http://mxr.mozilla.org/mozilla-central/source/js/src/jsdate.cpp?rev=64553c483cd1#889"><code>jsdate.cpp</code></a>  中找到。字符串 <code>"10 06 2014"</code>  可以作为非 ISO 格式字符串使用自定义处理方式的例子。参见这篇关于解析如何进行的<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1023155#c6">粗略纲要</a>。</p>
-<pre class="brush: js line-numbers language-js">new Date('10 06 2014');</pre>
+<pre class="brush: js">new Date('10 06 2014');</pre>
<p>将会被解析为本地时间 2014年10月6日,而不是6月10日。另一个例子</p>
-<pre class="brush: js line-numbers language-js">new Date('foo-bar 2014').toString();
+<pre class="brush: js">new Date('foo-bar 2014').toString();
// 返回: "Invalid Date"
Date.parse('foo-bar 2014');
@@ -97,7 +95,7 @@ Date.parse('foo-bar 2014');
<p>如果 <code>IPOdate</code> 是一个已经存在的 {{jsxref("Date")}} 对象,则可以把其设置为本地时间 1995年8月9日。如下:</p>
-<pre class="brush: js line-numbers language-js">IPOdate.setTime(Date.parse('Aug 9, 1995'));</pre>
+<pre class="brush: js">IPOdate.setTime(Date.parse('Aug 9, 1995'));</pre>
<p>其他一些解析非标准格式日期的例子:</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html
index 5c85e43084..b2393680ba 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setFullYear
<h2 id="Syntax">语法</h2>
-<pre class="syntaxbox language-html">dateObj.setFullYear(yearValue[, monthValue[, dayValue]])</pre>
+<pre class="brush: js">dateObj.setFullYear(yearValue[, monthValue[, dayValue]])</pre>
<h3 id="Parameters">参数</h3>
@@ -36,7 +36,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setFullYear
<h3 id="Example:_Using_setFullYear">例子:使用<code>setFullYear</code>方法</h3>
-<pre class="brush:js language-js">var theBigDay = new Date();
+<pre class="brush:js">var theBigDay = new Date();
theBigDay.setFullYear(1997);</pre>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/settime/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/settime/index.html
index ef3ce60645..28e6aee649 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/settime/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/settime/index.html
@@ -20,12 +20,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setTime
<dl>
<dt><code>timeValue</code></dt>
<dd>一个整数,表示从1970-1-1 00:00:00 UTC开始计时的毫秒数。</dd>
- <dt>
- <h3 id="Parameters">返回值</h3>
- </dt>
- <dd>UTC 1970年1月1日00:00:00与更新日期之间的毫秒数(实际上是自变量的值)。</dd>
</dl>
+<h3 id="Parameters">返回值</h3>
+<p>UTC 1970年1月1日00:00:00与更新日期之间的毫秒数(实际上是自变量的值)。</p>
+
<h2 id="Description">描述</h2>
<p>使用 <code>setTime</code> 方法用来把一个日期时间赋值给另一个 <code>Date </code>对象。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html b/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html
index 7db77bdbf1..7857abb575 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html
@@ -55,87 +55,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURIComponent
<h2 id="规范">规范</h2>
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">规范</th>
- <th scope="col">状态</th>
- <th scope="col">备注</th>
- </tr>
- <tr>
- <td>{{SpecName('ES3')}}</td>
- <td>{{Spec2('ES3')}}</td>
- <td>初始定义</td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-15.1.3.2', 'decodeURIComponent')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-decodeuricomponent-encodeduricomponent', 'decodeURIComponent')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-decodeuricomponent-encodeduricomponent', 'decodeURIComponent')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
+{{Specifications}}
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基础功能</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基础功能</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/encodeuri/index.html b/files/zh-cn/web/javascript/reference/global_objects/encodeuri/index.html
index 1bb8380c20..1a54a66c42 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/encodeuri/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/encodeuri/index.html
@@ -22,13 +22,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/encodeURI
<dl>
<dt><code>URI</code></dt>
<dd>一个完整的URI.</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
-
- <p>    一个新字符串, 表示提供的字符串编码为统一资源标识符 (URI)。</p>
- </dt>
</dl>
+<h3 id="返回值">返回值</h3>
+
+<p>    一个新字符串, 表示提供的字符串编码为统一资源标识符 (URI)。</p>
+
<h2 id="描述">描述</h2>
<p>假定一个URI是完整的URI,那么无需对那些保留的并且在URI中有特殊意思的字符进行编码。</p>
@@ -40,8 +39,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/encodeURI
<table class="standard-table">
<tbody>
<tr>
- <td class="header">类型</td>
- <td class="header">包含</td>
+ <th>类型</th>
+ <th>包含</th>
</tr>
<tr>
<td>保留字符</td>
@@ -79,87 +78,11 @@ console.log(encodeURI('\uDFFF'));</pre>
<h2 id="规范">规范</h2>
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">规范</th>
- <th scope="col">状态</th>
- <th scope="col">备注</th>
- </tr>
- <tr>
- <td>{{SpecName('ES3')}}</td>
- <td>{{Spec2('ES3')}}</td>
- <td>初始定义</td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-15.1.3.3', 'encodeURI')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-encodeuri-uri', 'encodeURI')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-encodeuri-uri', 'encodeURI')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
+{{Specifications}}
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基础功能</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基础功能</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/columnnumber/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/columnnumber/index.html
index e1e1161fbd..a39fa3b734 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/error/columnnumber/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/error/columnnumber/index.html
@@ -18,59 +18,11 @@ console.log(e.columnNumber) // 0
<h2 id="规范">规范</h2>
-<p>不属于任何规范的一部分. 非标准.</p>
+{{Specifications}}
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/filename/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/filename/index.html
index 2ef563d050..8e679effa2 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/error/filename/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/error/filename/index.html
@@ -22,59 +22,11 @@ throw e;
<h2 id="规范">规范</h2>
-<p>不属于任何规范的一部分. 非标准.</p>
+{{Specifications}}
-<h2 id="Browser_compatibility">Browser compatibility</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/index.html
index 80da68f766..2717020571 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/error/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/error/index.html
@@ -121,7 +121,7 @@ const y = new Error('I was constructed via the "new" keyword!');</code></pre>
<p>你可能希望自定义基于Error的异常类型,使得你能够 throw new MyError() 并可以使用 <code>instanceof MyError</code> 来检查某个异常的类型. 这种需求的通用解决方法如下.</p>
<div class="warning">
-<p>注意,在FireFox中抛出自定义类型的异常会显示不正确的行号和文件名。</p>
+<p><strong>警告:</strong>注意,在FireFox中抛出自定义类型的异常会显示不正确的行号和文件名。</p>
</div>
<p>参考 <a href="http://stackoverflow.com/questions/1382107/whats-a-good-way-to-extend-error-in-javascript">"What's a good way to extend Error in JavaScript?" discussion on Stackoverflow</a>.</p>
@@ -149,48 +149,6 @@ try {
console.log(e.message); // 'custom message'
}</pre>
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
-<div class="line-number"></div>
-
<h2 id="规范">规范</h2>
<table class="standard-table">
diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/message/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/message/index.html
index ff4dce9d23..7979ed0998 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/error/message/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/error/message/index.html
@@ -25,82 +25,11 @@ throw e;
<h2 id="规范">规范</h2>
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">规范版本</th>
- <th scope="col">规范状态</th>
- <th scope="col">注解</th>
- </tr>
- <tr>
- <td>ECMAScript 1st Edition.</td>
- <td>Standard</td>
- <td>Initial definition.</td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-15.11.4.3', 'Error.prototype.message')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-error.prototype.message', 'Error.prototype.message')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
+{{Specifications}}
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/name/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/name/index.html
index 80848f54dc..e60689f3e9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/error/name/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/error/name/index.html
@@ -25,82 +25,11 @@ throw e; // "ParseError: Malformed input"
<h2 id="规范">规范</h2>
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>ECMAScript 1st Edition.</td>
- <td>Standard</td>
- <td>Initial definition.</td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-15.11.4.2', 'Error.prototype.name')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-error.prototype.name', 'Error.prototype.name')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
+{{Specifications}}
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/tosource/index.html
index f6d59df24d..cc7a12d0de 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/error/tosource/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/error/tosource/index.html
@@ -25,7 +25,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Error/toSource
<p>这些属性对应于错误实例的相应属性。</p>
<div class="note">
-<p><strong>提示:</strong>  需要注意到,在创建该字符串时,<code>toSource</code>方法所使用的属性是可变的,并且可能无法准确地反映用于创建错误实例的函数或实际发生错误的文件名或行号。</p>
+<p><strong>备注:</strong>  需要注意到,在创建该字符串时,<code>toSource</code>方法所使用的属性是可变的,并且可能无法准确地反映用于创建错误实例的函数或实际发生错误的文件名或行号。</p>
</div>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/tostring/index.html
index 395d61aee2..2dfc20c937 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/error/tostring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/error/tostring/index.html
@@ -49,80 +49,15 @@ print(e.toString()); // "Error"
e.name = "hello";
print(e.toString()); // "hello"
</pre>
+
<h2 id="规范">规范</h2>
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">规范版本</th>
- <th scope="col">规范状态</th>
- <th scope="col">注解</th>
- </tr>
- <tr>
- <td>ECMAScript 1st Edition.</td>
- <td>Standard</td>
- <td>Initial definition.<br>
- Implemented in JavaScript 1.1</td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-15.11.4.4', 'Error.prototype.toString')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-error.prototype.tostring', 'Error.prototype.toString')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
+
+{{Specifications}}
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Error.prototype.toSource()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/escape/index.html b/files/zh-cn/web/javascript/reference/global_objects/escape/index.html
index dc558d27bd..38a2d6bea5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/escape/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/escape/index.html
@@ -68,55 +68,7 @@ escape("@*_+-./"); // "@*_+-./"</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_Also">其他链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/finalizationregistry/index.html b/files/zh-cn/web/javascript/reference/global_objects/finalizationregistry/index.html
index c1823859ad..6f456c2755 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/finalizationregistry/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/finalizationregistry/index.html
@@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/FinalizationRegistry
<p><code>FinalizationRegistry</code> 提供了这样的一种方法:当一个在注册表中注册的对象被回收时,请求在某个时间点上调用一个清理回调。(清理回调有时被称为 finalizer )。</p>
<div class="note">
-<p><strong>注意:</strong> 清理回调不应被用于必要的程序逻辑。详情请看<a href="#Notes_on_cleanup_callbacks">清理回调的注意事项</a>。</p>
+<p><strong>备注:</strong> 清理回调不应被用于必要的程序逻辑。详情请看<a href="#Notes_on_cleanup_callbacks">清理回调的注意事项</a>。</p>
</div>
<p>你在回调中创建了如下的 registry:</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/float32array/index.html b/files/zh-cn/web/javascript/reference/global_objects/float32array/index.html
index 8acfb7feee..8c78a91ccf 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/float32array/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/float32array/index.html
@@ -173,74 +173,9 @@ var z = new Float32Array(buffer, 0, 4);
</tbody>
</table>
-<h2 id="浏览器兼容">浏览器兼容</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>7.0</td>
- <td>{{CompatGeckoDesktop(2)}}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- <tr>
- <td>需要<code>new</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop(44)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile(2)}}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- <tr>
- <td>需要<code>new</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile(44)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="一致性提示">一致性提示</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/float64array/index.html b/files/zh-cn/web/javascript/reference/global_objects/float64array/index.html
index 7cc7d30a39..cc879d7e7d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/float64array/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/float64array/index.html
@@ -171,74 +171,9 @@ var z = new Float64Array(buffer, 0, 4);
</tbody>
</table>
-<h2 id="浏览器兼容">浏览器兼容</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>7.0</td>
- <td>{{CompatGeckoDesktop(2)}}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- <tr>
- <td><code>需要用new</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop(44)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoMobile(2) }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- <tr>
- <td><code>需要用new</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoMobile(44) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="一致性提示">一致性提示</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/apply/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/apply/index.html
index 67a69174e6..bee3572f70 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/function/apply/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/function/apply/index.html
@@ -11,7 +11,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/apply
<p><strong><code>apply()</code></strong> 方法调用一个具有给定<code>this</code>值的函数,以及以一个数组(或<a href="/zh-CN/docs/Web/JavaScript/Guide/Indexed_collections#Working_with_array-like_objects">类数组对象</a>)的形式提供的参数。</p>
-<div class="note"><strong>注意:</strong>call()方法的作用和 apply() 方法类似,区别就是<code>call()</code>方法接受的是<strong>参数列表</strong>,而<code>apply()</code>方法接受的是<strong>一个参数数组</strong>。</div>
+<div class="note">
+<p><strong>备注:</strong>call()方法的作用和 apply() 方法类似,区别就是<code>call()</code>方法接受的是<strong>参数列表</strong>,而<code>apply()</code>方法接受的是<strong>一个参数数组</strong>。</p>
+</div>
<div>{{EmbedInteractiveExample("pages/js/function-apply.html")}}</div>
@@ -45,7 +47,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/apply
<p>从 ECMAScript 第5版开始,可以使用任何种类的类数组对象,就是说只要有一个 <code>length</code> 属性和<code>(0..length-1)</code>范围的整数属性。例如现在可以使用 {{domxref("NodeList")}} 或一个自己定义的类似 <code>{'length': 2, '0': 'eat', '1': 'bananas'}</code> 形式的对象。</p>
<div class="note">
-<p>需要注意:Chrome 14 以及 Internet Explorer 9 仍然不接受类数组对象。如果传入类数组对象,它们会抛出异常。</p>
+<p><strong>备注:</strong> Chrome 14 以及 Internet Explorer 9 仍然不接受类数组对象。如果传入类数组对象,它们会抛出异常。</p>
</div>
<h2 id="Examples">示例</h2>
@@ -118,7 +120,7 @@ var min = minOfArray([5, 6, 2, 3, 7]);
</pre>
<div class="note">
-<p><strong>注意:</strong> 上面使用的<code>Object.create()</code>方法相对来说比较新。另一种可选的方法,请考虑如下替代方法:</p>
+<p><strong>备注:</strong> 上面使用的<code>Object.create()</code>方法相对来说比较新。另一种可选的方法,请考虑如下替代方法:</p>
<p>Using {{jsxref("Object/__proto__", "Object.__proto__")}}:</p>
@@ -166,7 +168,9 @@ console.log(myInstance instanceof MyConstructor); // logs "true"
console.log(myInstance.constructor);              // logs "MyConstructor"
</pre>
-<div class="note"><strong>注意:</strong> 这个非native的<code>Function.construct</code>方法无法和一些native构造器(例如<a href="/zh-CN/docs/JavaScript/Reference/Global_Objects/Date" title="JavaScript/Reference/Global_Objects/Date"><code>Date</code></a>)一起使用。 在这种情况下你必须使用<a href="/zh-CN/docs/JavaScript/Reference/Global_Objects/Function/bind#Bound_functions_used_as_constructors" title="JavaScript/Reference/Global_Objects/Function/bind#Bound_functions_used_as_constructors"><code>Function.bind</code></a>方法(例如,想象有如下一个数组要用在Date构造器中: <code>[2012, 11, 4]</code>;这时你需要这样写: <code>new (Function.prototype.bind.apply(Date, [null].concat([2012, 11, 4])))()</code> – -无论如何这不是最好的实现方式并且也许不该用在任何生产环境中).</div>
+<div class="note">
+<p><strong>备注:</strong> 这个非native的<code>Function.construct</code>方法无法和一些native构造器(例如<a href="/zh-CN/docs/JavaScript/Reference/Global_Objects/Date" title="JavaScript/Reference/Global_Objects/Date"><code>Date</code></a>)一起使用。 在这种情况下你必须使用<a href="/zh-CN/docs/JavaScript/Reference/Global_Objects/Function/bind#Bound_functions_used_as_constructors" title="JavaScript/Reference/Global_Objects/Function/bind#Bound_functions_used_as_constructors"><code>Function.bind</code></a>方法(例如,想象有如下一个数组要用在Date构造器中: <code>[2012, 11, 4]</code>;这时你需要这样写: <code>new (Function.prototype.bind.apply(Date, [null].concat([2012, 11, 4])))()</code> – -无论如何这不是最好的实现方式并且也许不该用在任何生产环境中).</p>
+</div>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/arguments/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/arguments/index.html
index ef832c70db..f7ab79e806 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/function/arguments/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/function/arguments/index.html
@@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/arguments
---
<div>{{JSRef}} {{deprecated_header}}</div>
-<p><code><strong><em>function</em>.arguments</strong></code> 属性代表传入函数的实参,它是一个类数组对象。</p>
+<p><code>function.arguments</code> 属性代表传入函数的实参,它是一个类数组对象。</p>
<h2 id="描述">描述</h2>
@@ -67,55 +67,7 @@ console.log('函数退出后的 arguments 属性值:' + g.arguments);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/bind/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/bind/index.html
index 45ee18de46..cb2c83b2a7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/function/bind/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/function/bind/index.html
@@ -140,7 +140,7 @@ flower.bloom(); // 一秒钟后, 调用 'declare' 方法</code></pre>
<h3 id="作为构造函数使用的绑定函数">作为构造函数使用的绑定函数</h3>
<div class="warning">
-<p><strong>警告</strong> :这部分演示了 JavaScript 的能力并且记录了 <code>bind()</code> 的超前用法。以下展示的方法并不是最佳的解决方案,且可能不应该用在任何生产环境中。</p>
+<p><strong>警告:</strong>这部分演示了 JavaScript 的能力并且记录了 <code>bind()</code> 的超前用法。以下展示的方法并不是最佳的解决方案,且可能不应该用在任何生产环境中。</p>
</div>
<p>绑定函数自动适应于使用 {{jsxref("Operators/new", "new")}} 操作符去构造一个由目标函数创建的新实例。当一个绑定函数是用来构建一个值的,原来提供的 <code>this</code> 就会被忽略。不过提供的参数列表仍然会插入到构造函数调用时的参数列表之前。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/call/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/call/index.html
index 9474d40416..a4bce37d0f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/function/call/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/function/call/index.html
@@ -11,7 +11,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/call
<p><code><strong>call()</strong></code> 方法使用一个指定的 <code>this</code> 值和单独给出的一个或多个参数来调用一个函数。</p>
-<div class="note"><strong>注意:</strong>该方法的语法和作用与 {{jsxref("Function.apply", "apply()")}} 方法类似,只有一个区别,就是 <code>call()</code> 方法接受的是<strong>一个参数列表</strong>,而 <code>apply()</code> 方法接受的是<strong>一个包含多个参数的数组</strong>。</div>
+<div class="note">
+<p><strong>备注:</strong>该方法的语法和作用与 {{jsxref("Function.apply", "apply()")}} 方法类似,只有一个区别,就是 <code>call()</code> 方法接受的是<strong>一个参数列表</strong>,而 <code>apply()</code> 方法接受的是<strong>一个包含多个参数的数组</strong>。</p>
+</div>
<div>{{EmbedInteractiveExample("pages/js/function-call.html")}}</div>
@@ -114,7 +116,7 @@ function display() {
display.call(); // sData value is Wisen</pre>
<div class="note">
-<p><strong>注意:</strong>在严格模式下,<code>this</code> 的值将会是 <code>undefined</code>。见下文。</p>
+<p><strong>备注:</strong>在严格模式下,<code>this</code> 的值将会是 <code>undefined</code>。见下文。</p>
</div>
<pre class="brush: js">'use strict';
diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/displayname/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/displayname/index.html
index c07f677636..4fab613040 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/function/displayname/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/function/displayname/index.html
@@ -66,56 +66,6 @@ a; // "function My Function()"</pre>
<p>不属于任何规范</p>
-<h2 id="Browser_compatibility_浏览器兼容性">Browser compatibility 浏览器兼容性</h2>
-
-<p>如果你愿意贡献数据,请访问<a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a>并同时给我们发送推送请求。</p>
-
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop(13)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+{{Compat}}
diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html
index 0f7695c49e..7d0557c5a4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html
@@ -10,12 +10,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/name
---
<div>{{JSRef("Global_Objects", "Function")}}</div>
-<div><code><strong><em>function</em>.name</strong></code> 属性返回函数实例的名称。</div>
+<div><code>function.name</code> 属性返回函数实例的名称。</div>
<p>{{js_property_attributes(0,0,1)}}</p>
<div class="note">
-<p>请注意,在非标准的ES2015之前的实现中,<code>configurable</code>属性也是<code>false</code> 。</p>
+<p><strong>备注:</strong>在非标准的ES2015之前的实现中,<code>configurable</code>属性也是<code>false</code> 。</p>
</div>
<h2 id="示例">示例</h2>
@@ -184,7 +184,6 @@ if (b.constructor.name === 'Foo') {
<p>在未压缩版本中,程序运行到真实分支并打印<code>'foo' is an instance of 'Foo'</code>。 而在压缩版本中,它的行为不同,并且进入else分支。如果您依赖于<code>Function.name</code>,就像上面的示例一样,确保您的构建管道不会更改函数名称,也不要假定函数具有特定的名称。</p>
-<article>
<h2 id="规范">规范</h2>
<table class="standard-table">
@@ -210,4 +209,3 @@ if (b.constructor.name === 'Foo') {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
<p>{{Compat("javascript.builtins.Function.name")}}</p>
-</article>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html b/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html
index 63d7f9a169..862cf598be 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html
@@ -101,61 +101,9 @@ g.next(2);
</tbody>
</table>
-<h2 id="Browser_compatibility">浏览器兼容性</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>13</td>
- <td>{{CompatGeckoDesktop(26)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatSafari(10)}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>5.1</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile(26)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/generator/throw/index.html b/files/zh-cn/web/javascript/reference/global_objects/generator/throw/index.html
index 63afc5f965..19acc2332a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/generator/throw/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/generator/throw/index.html
@@ -83,57 +83,9 @@ g.throw(new Error("Something went wrong")); // "Error caught!"
</tbody>
</table>
-<h2 id="Browser_compatibility">浏览器兼容性</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop(26)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile(26)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/generatorfunction/index.html b/files/zh-cn/web/javascript/reference/global_objects/generatorfunction/index.html
index 379b31a804..d283c29e96 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/generatorfunction/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/generatorfunction/index.html
@@ -39,7 +39,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/GeneratorFunction
<p>传递给函数的所有参数按照它们被传递的顺序被视为要创建的函数中参数的标识符的名称。</p>
<div class="note">
-<p><strong>提示:</strong>使用<code>GeneratorFunction</code>构造函数创建的{{jsxref("Statements/function*", "生成器函数")}}不会为其创建上下文创建闭包;它们始终在全局范围内创建。当运行它们时,它们只能访问自己的本地变量和全局变量,而不是从<code>GeneratorFunction</code>构造函数调用的范围的变量。这与使用{{jsxref("Global_Objects/eval", "eval")}}与生成函数表达式的代码不同。</p>
+<p><strong>备注:</strong>使用<code>GeneratorFunction</code>构造函数创建的{{jsxref("Statements/function*", "生成器函数")}}不会为其创建上下文创建闭包;它们始终在全局范围内创建。当运行它们时,它们只能访问自己的本地变量和全局变量,而不是从<code>GeneratorFunction</code>构造函数调用的范围的变量。这与使用{{jsxref("Global_Objects/eval", "eval")}}与生成函数表达式的代码不同。</p>
</div>
<p>将<code>GeneratorFunction</code>构造函数调用为函数(不使用<code>new</code>运算符)与将其作为构造函数调用的效果相同。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/infinity/index.html b/files/zh-cn/web/javascript/reference/global_objects/infinity/index.html
index a0ce09c381..20836d878b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/infinity/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/infinity/index.html
@@ -25,7 +25,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Infinity
<h2 id="示例">示例</h2>
-<pre class="brush: js line-numbers language-js">console.log(Infinity ); /* Infinity */
+<pre class="brush: js">console.log(Infinity ); /* Infinity */
console.log(Infinity + 1 ); /* Infinity */
console.log(Math.pow(10, 1000)); /* Infinity */
console.log(Math.log(0) ); /* -Infinity */
diff --git a/files/zh-cn/web/javascript/reference/global_objects/int16array/index.html b/files/zh-cn/web/javascript/reference/global_objects/int16array/index.html
index 6cb8a365b6..743839da50 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/int16array/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/int16array/index.html
@@ -166,74 +166,9 @@ var z = new Int16Array(buffer, 0, 4);
</tbody>
</table>
-<h2 id="Browser_compatibility">Browser compatibility</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>7.0</td>
- <td>{{ CompatGeckoDesktop(2) }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- <tr>
- <td><code>new</code> is required</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoDesktop(44) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoMobile(2) }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- <tr>
- <td><code>new</code> is required</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoMobile(44) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="Compatibility_notes">Compatibility notes</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/int32array/index.html b/files/zh-cn/web/javascript/reference/global_objects/int32array/index.html
index 133969ba90..2bb0a2ce60 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/int32array/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/int32array/index.html
@@ -170,72 +170,7 @@ var z = new Int32Array(buffer, 0, 4);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>7.0</td>
- <td>{{ CompatGeckoDesktop(2) }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- <tr>
- <td>新 的特性</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoDesktop(44) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoMobile(2) }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- <tr>
- <td><code>新</code>的特性</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoMobile(44) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="兼容性说明">兼容性说明</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/int8array/index.html b/files/zh-cn/web/javascript/reference/global_objects/int8array/index.html
index e437d73a73..74fbce657b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/int8array/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/int8array/index.html
@@ -172,72 +172,7 @@ var z = new Int8Array(buffer, 1, 4);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>功能</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>7.0</td>
- <td>{{ CompatGeckoDesktop("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- <tr>
- <td><code>new</code> is required</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoDesktop("44") }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoMobile("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- <tr>
- <td><code>new</code> is required</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoMobile("44") }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="兼容性说明">兼容性说明</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/internalerror/index.html b/files/zh-cn/web/javascript/reference/global_objects/internalerror/index.html
index fc9c4a389f..f033e4771a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/internalerror/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/internalerror/index.html
@@ -65,55 +65,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/InternalError
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<h2 id="CompatibilityTable">{{CompatibilityTable}}</h2>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html
index 04d383b97d..7275668035 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html
@@ -23,9 +23,8 @@ Intl.DateTimeFormat.call(<var>this</var>[, <var>locales</var>[, <var>options</va
<p>译者注:下面这两种扩展的使用方式是language[-scripts][-region]-u-nu-* 和 language[-scripts][-region]-u-ca-* ,例如:zh-u-nu-hanidec(表示中文十进制数字) 和 zh-u-ca-chinese(表示中国日历,比如壬辰年冬月8日) ,也可以 nu 和 ca 组合使用 比如 使用 zh-u-ca-chinese-nu-hanidec 格式化Date.now()的返回值类似于"丙申年冬月九日"</p>
- <p><code>nu</code></p>
-
<dl>
+ <dt><code>nu</code></dt>
<dd>编号系统. 可能的值包括: <code>"arab"</code>, <code>"arabext"</code>, <code>"bali"</code>, <code>"beng"</code>, <code>"deva"</code>, <code>"fullwide"</code>, <code>"gujr"</code>, <code>"guru"</code>, <code>"hanidec"</code>, <code>"khmr"</code>, <code>"knda"</code>, <code>"laoo"</code>, <code>"latn"</code>, <code>"limb"</code>, <code>"mlym"</code>, <code>"mong"</code>, <code>"mymr"</code>, <code>"orya"</code>, <code>"tamldec"</code>, <code>"telu"</code>, <code>"thai"</code>, <code>"tibt"</code>.</dd>
<dt><code>ca</code></dt>
<dd>日历. 可能的值包括: <code>"buddhist"</code>, <code>"chinese"</code>, <code>"coptic"</code>, <code>"ethioaa"</code>, <code>"ethiopic"</code>, <code>"gregory"</code>, <code>"hebrew"</code>, <code>"indian"</code>, <code>"islamic"</code>, <code>"islamicc"</code>, <code>"iso8601"</code>, <code>"japanese"</code>, <code>"persian"</code>, <code>"roc"</code>.</dd>
@@ -79,7 +78,7 @@ Intl.DateTimeFormat.call(<var>this</var>[, <var>locales</var>[, <var>options</va
<dd>时区名称的展现方式.可能的值有 <code>"short"</code>, <code>"long"</code>.</dd>
</dl>
- <p class="noinclude">每个日期时间组件属性的默认值都是{{jsxref("undefined")}},但是若所有的组件属性都是{{jsxref("undefined")}},那么<code>year</code>, <code>month</code>, and <code>day</code> 的值就都被认为是"<code>numeric</code>".</p>
+ <p>每个日期时间组件属性的默认值都是{{jsxref("undefined")}},但是若所有的组件属性都是{{jsxref("undefined")}},那么<code>year</code>, <code>month</code>, and <code>day</code> 的值就都被认为是"<code>numeric</code>".</p>
</dd>
</dl>
@@ -226,55 +225,7 @@ console.log(date.toLocaleString('en-US', options));
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("24")}}</td>
- <td>{{CompatGeckoDesktop("29")}}</td>
- <td>{{CompatIE("11")}}</td>
- <td>{{CompatOpera("15")}}</td>
- <td>{{CompatSafari("10")}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome("26")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatSafari("10")}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
index a4b2e509de..e508097567 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
@@ -51,13 +51,7 @@ Intl.NumberFormat.call(<var>this</var>[, <var>locales</var>[, <var>options</var>
<dt><code>unit</code>{{Experimental_inline}}</dt>
<dd><code>unit</code> 格式中使用的单位,可能的值为在 <a href="http://unicode.org/reports/tr35/tr35-general.html#Unit_Elements" rel="nofollow">UTS #35, Part 2, Section 6</a> 定义的核心单元标识符。已从<a href="https://github.com/unicode-org/cldr/blob/master/common/validity/unit.xml">完整列表</a>中选择了一个<a href="https://tc39.es/proposal-unified-intl-numberformat/section6/locales-currencies-tz_proposed_out.html#sec-issanctionedsimpleunitidentifier">单位子集</a>以用于ECMAScript。可以将成对的简单单位与 <code>“ -per-”</code> 连接以组成一个复合单位。没有默认值;如果 <code>style</code> 为 <code>“unit”</code>,必须提供<code>unit</code> 属性。</dd>
<dt><code>unitDisplay</code>{{Experimental_inline}}</dt>
- <dd><code>unit</code> 格式化中使用的单位格式化样式,默认值为“ short”。
- <ul>
- <li><code>“long”</code> (e.g., <code>16 litres</code>)</li>
- <li><code>“short“</code> (e.g., <code>16 l</code>)</li>
- <li><code>”narrow“</code> (e.g., <code>16l</code>)</li>
- </ul>
- </dd>
+ <dd><code>unit</code> 格式化中使用的单位格式化样式,默认值为“ short”。<code>“long”</code> (e.g., <code>16 litres</code>)、<code>“short“</code> (e.g., <code>16 l</code>)、<code>”narrow“</code> (e.g., <code>16l</code>)</dd>
<dt><code>currency</code></dt>
<dd>在货币格式化中使用的货币符号. 可能的值是<em>ISO</em>的货币代码 (the ISO 4217 currency codes,) 例如 <code>"USD"</code> 表示美元, <code>"EUR"</code> 表示欧元, 或者 <code>"CNY"是人民币</code> — 更多请参考 <a href="http://www.currency-iso.org/en/home/tables/table-a1.html">Current currency &amp; funds code list</a>。没有默认值,如果 <code>style</code> 是 <code>“currency”</code>,必须提 <code>currency</code> 属性.</dd>
<dt><code>currencyDisplay</code></dt>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html
index 77f7426002..52770bcc7a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html
@@ -69,7 +69,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Intl/PluralRules
<h2 id="例子">例子</h2>
-<h3 id="基本用法">基本用法
+<h3 id="基本用法">基本用法</h3>
<p>在没有指定语言环境的基本使用中,返回默认语言环境中的格式化字符串和默认选项。这有助于区分单数和复数形式,例如“dog”和“dogs”。</p>
@@ -101,7 +101,7 @@ new Intl.PluralRules('ar-EG').select(6);
new Intl.PluralRules('ar-EG').select(18);
// → 'many'</pre>
-<h3 id="运用_options">运用
+<h3 id="运用_options">运用</h3>
<p>可以查询查询结果使用><code>options</code>参数进行自定义,该参数具有一个<code>type</code>您可以设置的属性<code>ordinal</code>。这对计算序数指标很有用,例如“第一”,“第二”,“第三”,“第四”,“42”等。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/isfinite/index.html b/files/zh-cn/web/javascript/reference/global_objects/isfinite/index.html
index f033320715..d57fd1cf34 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/isfinite/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/isfinite/index.html
@@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/isFinite
<h2 id="语法">语法</h2>
-<pre class="syntaxbox language-html">isFinite(<em>testValue</em>)</pre>
+<pre class="brush: js">isFinite(<em>testValue</em>)</pre>
<h3 id="Parameters">参数</h3>
@@ -25,15 +25,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/isFinite
<h3 id="Description">描述</h3>
-<dl>
- <dd>isFinite 是全局的方法,不与任何对象有关系。</dd>
-</dl>
+<p>isFinite 是全局的方法,不与任何对象有关系。</p>
<p>你可以用这个方法来判定一个数字是否是有限数字。<code>isFinite</code> 方法检测它参数的数值。如果参数是 <code>NaN</code>,正无穷大或者负无穷大,会返回<code>false</code>,其他返回 <code>true</code>。</p>
<h2 id="Examples">示例</h2>
-<pre class="brush: js language-js">isFinite(Infinity); // false
+<pre class="brush: js">isFinite(Infinity); // false
isFinite(NaN); // false
isFinite(-Infinity); // false
@@ -43,24 +41,6 @@ isFinite(2e64); // true, 在更强壮的Number.isFinite(null)中将会得
isFinite("0"); // true, 在更强壮的Number.isFinite('0')中将会得到false</pre>
-<div class="line-number"> </div>
-
-<div class="line-number"> </div>
-
-<div class="line-number"> </div>
-
-<div class="line-number"> </div>
-
-<div class="line-number"> </div>
-
-<div class="line-number"> </div>
-
-<div class="line-number"> </div>
-
-<div class="line-number"> </div>
-
-<div class="line-number"> </div>
-
<h2 id="规范">规范</h2>
<table class="standard-table">
diff --git a/files/zh-cn/web/javascript/reference/global_objects/isnan/index.html b/files/zh-cn/web/javascript/reference/global_objects/isnan/index.html
index 00704c3228..0fe301862d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/isnan/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/isnan/index.html
@@ -48,7 +48,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/isNaN
<p>一个<code>isNaN</code>的 polyfill 可以理解为(这个polyfill利用了<code>NaN</code>自身永不相等于自身这一特征 ):</p>
-<pre class="brush: js line-numbers language-js">var isNaN = function(value) {
+<pre class="brush: js">var isNaN = function(value) {
var n = Number(value);
return n !== n;
};</pre>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/json/stringify/index.html b/files/zh-cn/web/javascript/reference/global_objects/json/stringify/index.html
index e37a4fc9ee..a124d85c97 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/json/stringify/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/json/stringify/index.html
@@ -31,12 +31,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/JSON/stringify
<dd>如果该参数是一个函数,则在序列化过程中,被序列化的值的每个属性都会经过该函数的转换和处理;如果该参数是一个数组,则只有包含在这个数组中的属性名才会被序列化到最终的 JSON 字符串中;如果该参数为 null 或者未提供,则对象所有的属性都会被序列化。</dd>
<dt><code>space</code> {{optional_inline}}</dt>
<dd>指定缩进用的空白字符串,用于美化输出(pretty-print);如果参数是个数字,它代表有多少的空格;上限为10。该值若小于1,则意味着没有空格;如果该参数为字符串(当字符串长度超过10个字母,取其前10个字母),该字符串将被作为空格;如果该参数没有提供(或者为 null),将没有空格。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
- </dt>
- <dd>一个表示给定值的JSON字符串。</dd>
</dl>
+<h3 id="返回值">返回值</h3>
+
+<p>一个表示给定值的JSON字符串。</p>
+
<h3 id="异常">异常</h3>
<ul>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/@@tostringtag/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/@@tostringtag/index.html
index 186603b1a3..d74a6f0cdf 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/map/@@tostringtag/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/map/@@tostringtag/index.html
@@ -49,56 +49,6 @@ browser-compat: javascript.builtins.Map.@@toStringTag
</tbody>
</table>
-<h2 id="浏览器兼容">浏览器兼容</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}} </p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatChrome(44.0) }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatNo }}</td>
- <td>{{ CompatChrome(44.0) }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(44.0)}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/delete/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/delete/index.html
index 6bbd943f7f..d2801c08d5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/map/delete/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/map/delete/index.html
@@ -14,7 +14,7 @@ browser-compat: javascript.builtins.Map.delete
---
<div>{{JSRef}}</div>
-<p><strong> </strong><code><strong><strong>delete()</strong></strong></code><strong> </strong>方法用于移除 <code>Map</code> 对象中指定的元素。</p>
+<p><code>delete()</code> 方法用于移除 <code>Map</code> 对象中指定的元素。</p>
<div>{{EmbedInteractiveExample("pages/js/map-prototype-delete.html")}}</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/has/index.html
index 461f2e5e07..0f5989851b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/map/has/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/map/has/index.html
@@ -64,55 +64,7 @@ myMap.has("baz"); // returns false
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>浏览器</th>
- <th>Chrome谷歌</th>
- <th>Firefox (Gecko)火狐</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>兼容版本</td>
- <td>38</td>
- <td>{{CompatGeckoDesktop("13.0")}}</td>
- <td>11</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>浏览器</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>兼容版本</td>
- <td>{{CompatNo}}</td>
- <td>38</td>
- <td>{{CompatGeckoMobile("13.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/index.html
index 675b0f1b1b..606848aabd 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/map/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/map/index.html
@@ -52,8 +52,8 @@ browser-compat: javascript.builtins.Map
<td>
<p>一个 <code>Object</code> 有一个原型, 原型链上的键名有可能和你自己在对象上的设置的键名产生冲突。</p>
- <div class="blockIndicator note">
- <p><strong>注意:</strong> 虽然 ES5 开始可以用 <code>Object.create(null)</code> 来创建一个没有原型的对象,但是这种用法不太常见。</p>
+ <div class="note">
+ <p><strong>备注:</strong>虽然 ES5 开始可以用 <code>Object.create(null)</code> 来创建一个没有原型的对象,但是这种用法不太常见。</p>
</div>
</td>
</tr>
@@ -70,8 +70,8 @@ browser-compat: javascript.builtins.Map
<td>
<p>一个 <code>Object</code> 的键是无序的</p>
- <div class="blockIndicator note">
- <p>注意:自ECMAScript 2015规范以来,对象<em>确实</em>保留了字符串和Symbol键的创建顺序; 因此,在只有字符串键的对象上进行迭代将按插入顺序产生键。</p>
+ <div class="note">
+ <p><strong>备注:</strong>自ECMAScript 2015规范以来,对象<em>确实</em>保留了字符串和Symbol键的创建顺序; 因此,在只有字符串键的对象上进行迭代将按插入顺序产生键。</p>
</div>
</td>
</tr>
@@ -238,8 +238,8 @@ console.log(clone.get(1)); // one
console.log(original === clone); // false. 浅比较 不为同一个对象的引用
</pre>
-<div class="blockIndicator note">
-<p>重要:请记住,<em>数据本身</em>未被克隆。</p>
+<div class="note">
+ <p><strong>备注:</strong>请记住,<em>数据本身</em>未被克隆。</p>
</div>
<p>Map对象间可以进行合并,但是会保持键的唯一性。</p>
@@ -289,7 +289,7 @@ console.log(merged.get(3)); // three</pre>
<p>所以,你还是<em>可以这样做.</em>..</p>
-<pre class="syntaxbox example-bad brush js">let wrongMap = new Map()
+<pre class="brush: js example-bad">let wrongMap = new Map()
wrongMap['bla'] = 'blaa'
wrongMap['bla2'] = 'blaaa2'
@@ -298,13 +298,13 @@ console.log(wrongMap) // Map { bla: 'blaa', bla2: 'blaaa2' }
<p>...但是,这样做的话,它的行为会不符合预期:</p>
-<pre class="syntaxbox example-bad brush js">wrongMap.has('bla') // false
+<pre class="brush: js example-bad">wrongMap.has('bla') // false
wrongMap.delete('bla') // false
console.log(wrongMap) // Map { bla: 'blaa', bla2: 'blaaa2' }</pre>
<p>无论如何,和正确用法比较起来,几乎没有什么不同: </p>
-<pre class="syntaxbox brush js example-good">let myMap = new Map()
+<pre class="brush: js example-good">let myMap = new Map()
myMap.set('bla','blaa')
myMap.set('bla2','blaa2')
console.log(myMap) // Map { 'bla' =&gt; 'blaa', 'bla2' =&gt; 'blaa2' }
diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/size/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/size/index.html
index 97a5d475c3..f793669b7b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/map/size/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/map/size/index.html
@@ -62,8 +62,8 @@ myMap.size // 3
<p>此页的兼容性表格请查阅:<a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> <br>
如果你想更新数据,请在GitHub上给我们发推送请求。</p>
-<div class="blockIndicator warning">
-<p><strong>异常提醒</strong></p>
+<div class="warning">
+<p><strong>警告:</strong><strong>异常提醒</strong></p>
</div>
<ul>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/values/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/values/index.html
index 46e4de8672..c85c3bcc36 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/map/values/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/map/values/index.html
@@ -63,55 +63,7 @@ console.log(mapIter.next().value); // "baz"</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>38</td>
- <td>{{ CompatGeckoDesktop("20") }}</td>
- <td>{{CompatNo}}</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>38</td>
- <td>{{ CompatGeckoMobile("20") }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="查看">查看</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html
index e86e8064c2..2d3e550d2d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html
@@ -65,55 +65,7 @@ Math.abs(); // NaN</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html
index b50eb69568..c2dac17a81 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html
@@ -55,54 +55,11 @@ Math.acos(2); // NaN
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html
index 2386375e80..aecf8f3e0a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html
@@ -54,54 +54,11 @@ Math.asin(2); // NaN</pre>
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html
index 0bdf09d234..ab53c9767c 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html
@@ -50,54 +50,11 @@ Math.atan(0); // 0
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html
index b4ded024ac..840f177205 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html
@@ -77,55 +77,7 @@ Math.atan2(15, 90) // 0.16514867741462683
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/atanh/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/atanh/index.html
index 6a0b373ddf..fe00a1eba2 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/atanh/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/atanh/index.html
@@ -71,55 +71,7 @@ Math.atanh(2); // NaN
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("38")}}</td>
- <td>{{CompatGeckoDesktop("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOpera("25")}}</td>
- <td>{{CompatSafari("7.1")}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html
index 4df408bf28..980c7a48fd 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html
@@ -80,57 +80,7 @@ Math.cbrt(2); // 1.2599210498948734</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-
+{{Compat}}
<h2 id="另请参见">另请参见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/ceil/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/ceil/index.html
index 185d77ed54..4bd5f491f4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/ceil/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/ceil/index.html
@@ -28,13 +28,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/ceil
<dl>
<dt><code>x</code></dt>
<dd>一个数值。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
-
- <p>大于或等于给定数字的最小整数。</p>
- </dt>
</dl>
+<h3 id="返回值">返回值</h3>
+
+<p>大于或等于给定数字的最小整数。</p>
+
<h2 id="描述">描述</h2>
<p>由于 <code>ceil</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.ceil()</code>,而不是作为你创建的 <code>Math</code> 实例的方法。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html
index d0741e46a4..e15d870235 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html
@@ -52,54 +52,11 @@ Math.cos(2 * Math.PI); // 1
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/cosh/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/cosh/index.html
index f046070715..9378916bb3 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/cosh/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/cosh/index.html
@@ -69,55 +69,7 @@ Math.cosh(-1); // 1.5430806348152437
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("38")}}</td>
- <td>{{CompatGeckoDesktop("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOpera("25")}}</td>
- <td>{{CompatSafari("7.1")}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html
index adb71b9f29..a34a67156b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html
@@ -45,54 +45,11 @@ getNapier() // 2.718281828459045</pre>
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
index 9161628dfb..2921e2dd84 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
@@ -48,54 +48,11 @@ Math.exp(1); // 2.718281828459045</pre>
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
index 1b463f2c22..ff6cc83256 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
@@ -62,55 +62,7 @@ Math.expm1("foo") // NaN
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html
index 3f9deb45c0..20ce5698a0 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html
@@ -12,7 +12,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/floor
<p><code><strong>Math.floor()</strong></code> 返回小于或等于一个给定数字的最大整数。</p>
<div class="note">
-<p>Note:  可以理解 <code><strong>Math.floor()</strong></code>为向下取整</p>
+<p><strong>备注:</strong>可以理解 <code><strong>Math.floor()</strong></code>为向下取整</p>
</div>
<h2 id="Syntax">语法</h2>
@@ -24,13 +24,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/floor
<dl>
<dt><code>x</code></dt>
<dd>一个数字。</dd>
- <dt>
- <h3 id="返回值">返回值 </h3>
-
- <p>一个表示小于或等于指定数字的最大整数的数字。</p>
- </dt>
</dl>
+<h3 id="返回值">返回值 </h3>
+
+<p>一个表示小于或等于指定数字的最大整数的数字。</p>
+
<h2 id="Description">描述</h2>
<p>由于 <code>floor</code> 是 <code>Math</code> 的一个静态方法,你总是应该像这样使用它 <code>Math.floor()</code>,而不是作为你创建的一个Math对象的一种方法(Math不是一个构造函数)。</p>
@@ -160,55 +159,7 @@ Math.ceil10(-59, 1); // -50
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html
index 630c3b5d1c..786c555616 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html
@@ -95,57 +95,9 @@ equal(0.1 + 0.2, 0.3); //true
</tbody>
</table>
-<h2 id="Browser_compatibility">浏览器兼容性</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("38")}}</td>
- <td>{{CompatGeckoDesktop("26")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOpera("25")}}</td>
- <td>{{CompatSafari("7.1")}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>iOS 8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html
index 42c9565c28..d013d73d4b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html
@@ -86,56 +86,6 @@ Math.imul(0xfffffffe, 5) //-10
</tbody>
</table>
-
-
-
-
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Firefox (Gecko)</th>
- <th>Chrome</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatGeckoDesktop("20") }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Android</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatGeckoMobile("20") }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/index.html
index 4e67bcef28..b76793a7d8 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/index.html
@@ -43,13 +43,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math
<h2 id="方法">方法</h2>
<div class="note">
-<p>需要注意的是,三角函数 <code>sin()</code>、<code>cos()</code>、<code>tan()</code>、<code>asin()</code>、<code>acos()</code>、<code>atan()</code> 和 <code>atan2()</code> 返回的值是<em>弧度</em>而非角度。</p>
+<p><strong>备注:</strong>需要注意的是,三角函数 <code>sin()</code>、<code>cos()</code>、<code>tan()</code>、<code>asin()</code>、<code>acos()</code>、<code>atan()</code> 和 <code>atan2()</code> 返回的值是<em>弧度</em>而非角度。</p>
<p>若要转换,弧度除以 <code>(Math.PI / 180)</code> 即可转换为角度,同理,角度乘以这个数则能转换为弧度。</p>
</div>
<div class="note">
-<p>需要注意的是,很多 <code>Math</code> 函数都有一个精度,而且这个精度在不同实现中也是不相同的。这意味着不同的浏览器会给出不同的结果,甚至,在不同的系统或架构下,相同的 JS 引擎也会给出不同的结果!</p>
+<p><strong>备注:</strong>需要注意的是,很多 <code>Math</code> 函数都有一个精度,而且这个精度在不同实现中也是不相同的。这意味着不同的浏览器会给出不同的结果,甚至,在不同的系统或架构下,相同的 JS 引擎也会给出不同的结果!</p>
</div>
<dl>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html
index 763340918a..eab6bc7621 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html
@@ -45,54 +45,11 @@ getNatLog10() // 2.302585092994046</pre>
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html
index f1d8fd9c23..a0be200539 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html
@@ -45,54 +45,11 @@ getNatLog2() // 0.6931471805599453</pre>
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
index fc1a647ccc..88110bc541 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
@@ -78,55 +78,7 @@ Math.log(10); // 2.302585092994046</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html
index 1f6d67437a..c4091b84d2 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html
@@ -56,55 +56,7 @@ Math.log10("foo")// NaN
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html
index 43e10e9ed5..f85ebbf495 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html
@@ -45,54 +45,11 @@ getLog10e() // 0.4342944819032518</pre>
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html
index 139283bc81..4ad2319f9e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html
@@ -59,55 +59,7 @@ Math.log1p("foo") // NaN
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html
index 1811e1b183..15bd670370 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html
@@ -56,55 +56,7 @@ Math.log2("foo") // NaN
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html
index 79f6800f6e..f813c396be 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html
@@ -45,54 +45,11 @@ getLog2e() // 1.4426950408889634</pre>
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html
index 068ffd7bd6..010d8819fd 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html
@@ -98,58 +98,6 @@ if (x &gt; boundary) {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
+{{Compat}}
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="See_also">相关链接</h2>
-
-<ul>
- <li>{{jsxref("Math.max()")}}</li>
-</ul>
+<h2 \ No newline at end of file
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
index 3fc466cb3b..f05d335a0a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
@@ -23,7 +23,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/PI
<p>下面的函数使用 Math.PI 计算给定半径的圆周长:</p>
-<pre class="brush:js language-js">function calculateCircumference (radius) {
+<pre class="brush:js">function calculateCircumference (radius) {
return 2 * Math.PI * radius;
}
@@ -58,55 +58,7 @@ calculateCircumference(1); // 6.283185307179586</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html
index 84c07215f2..1b37bb8dc5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html
@@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/random
<p>{{EmbedInteractiveExample("pages/js/math-random.html")}}</p>
<div class="note">
-<p><code>Math.random()</code> <em>不能</em>提供像密码一样安全的随机数字。不要使用它们来处理有关安全的事情。使用Web Crypto API 来代替, 和更精确的{{domxref("RandomSource.getRandomValues()", "window.crypto.getRandomValues()")}} 方法.</p>
+<p><strong>备注:</strong><code>Math.random()</code> <em>不能</em>提供像密码一样安全的随机数字。不要使用它们来处理有关安全的事情。使用Web Crypto API 来代替, 和更精确的{{domxref("RandomSource.getRandomValues()", "window.crypto.getRandomValues()")}} 方法.</p>
</div>
<h2 id="Syntax">语法</h2>
@@ -50,21 +50,21 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/random
<p>这个例子返回了一个在指定值之间的随机整数。这个值不小于 <code>min</code> (如果 <code>min</code> 不是整数,则不小于 <code>min</code> 的向上取整数),且小于(不等于)<code>max</code>。</p>
-<pre class="brush: js line-numbers language-js">function getRandomInt(min, max) {
+<pre class="brush: js">function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min)) + min; //不含最大值,含最小值
}</pre>
<div class="note">
-<p>也许很容易想到用 <code>Math.round()</code> 来实现,但是这会导致你的随机数处于一个不均匀的分布,这可能不符合你的需求。</p>
+<p><strong>备注:</strong>也许很容易想到用 <code>Math.round()</code> 来实现,但是这会导致你的随机数处于一个不均匀的分布,这可能不符合你的需求。</p>
</div>
<h3 id="得到一个两数之间的随机整数,包括两个数在内">得到一个两数之间的随机整数,包括两个数在内</h3>
<p>上一个例子提到的函数 <code>getRandomInt()</code> 结果范围包含了最小值,但不含最大值。如果你的随机结果需要同时包含最小值和最大值,怎么办呢?  <code>getRandomIntInclusive()</code> 函数可以实现。</p>
-<pre class="brush: js line-numbers language-js">function getRandomIntInclusive(min, max) {
+<pre class="brush: js">function getRandomIntInclusive(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min; //含最大值,含最小值
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
index 8cc263a27d..4320c81ed1 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
@@ -19,13 +19,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/round
<dl>
<dt><code>x</code></dt>
<dd>一个数值。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
-
- <p>给定数字的值四舍五入到最接近的整数。</p>
- </dt>
</dl>
+<h3 id="返回值">返回值</h3>
+
+<p>给定数字的值四舍五入到最接近的整数。</p>
+
<h2 id="Description">描述</h2>
<p>如果参数的小数部分大于 0.5,则舍入到相邻的绝对值更大的整数。 如果参数的小数部分小于 0.5,则舍入到相邻的绝对值更小的整数。如果参数的小数部分恰好等于0.5,则舍入到相邻的在正无穷(+∞)方向上的整数。<strong>注意,与很多其他语言中的<code>round()函数</code>不同,<code>Math.round()并不总是舍入到远离0的方向(尤其是在负数的小数部分恰好等于0.5的情况下)。</code></strong></p>
@@ -155,53 +154,7 @@ round(1.005, 2); //1.01
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html
index 3501c97fd8..b2ba39ed7a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html
@@ -50,7 +50,7 @@ Math.sign(); // NaN
<h2 id="Compatibility">Polyfill</h2>
-<pre class="brush: js language-js">function sign(x) {
+<pre class="brush: js">function sign(x) {
x = +x ;// convert to a number
if (x === 0 || isNaN(x))
return x;
@@ -95,55 +95,7 @@ Math.sign(); // NaN
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>38</td>
- <td>{{CompatGeckoDesktop("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>25</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html
index 899783ca75..44f03bf2e7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html
@@ -24,7 +24,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/sinh
<p>双曲正弦的图像如下:</p>
-<p><img alt="" src="http://upload.wikimedia.org/wikipedia/commons/1/17/Sinh.png" style="height: 300px; width: 300px;"></p>
+<p><img alt="" src="http://upload.wikimedia.org/wikipedia/commons/1/17/Sinh.png"></p>
<h2 id="Examples">示例</h2>
@@ -55,61 +55,13 @@ Math.sinh("foo") // NaN
<p>该函数可以使用 {{jsxref("Math.exp()")}}<code> 函数来实现</code>:</p>
-<pre class="brush: js language-js">function sinh(x){
+<pre class="brush: js">function sinh(x){
return (Math.exp(x) - Math.exp(-x)) / 2;
}</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html
index 413f66b993..7e9696145d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html
@@ -46,54 +46,11 @@ getRoot1_2() // 0.7071067811865476</pre>
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html
index 2c299fde7e..349a7674f8 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html
@@ -41,54 +41,11 @@ getRoot2(); // 1.4142135623730951</pre>
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html
index 3ecf39169a..951894d06c 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html
@@ -56,52 +56,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/tan
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<p> </p>
+
+{{Compat}}
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/epsilon/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/epsilon/index.html
index 531b2ba929..df499c336d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/epsilon/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/epsilon/index.html
@@ -57,55 +57,7 @@ equal = (Math.abs(x - y + z) &lt; Number.EPSILON);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("25.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>9</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>9</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/max_safe_integer/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/max_safe_integer/index.html
index 6891a1106c..c65b9bbfc6 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/max_safe_integer/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/max_safe_integer/index.html
@@ -47,55 +47,7 @@ Math.pow(2, 53) - 1 // 9007199254740991
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("34")}}</td>
- <td>{{CompatGeckoDesktop("31")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>9.0.2</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("32")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/max_value/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/max_value/index.html
index db8250d873..8e8f11be4f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/max_value/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/max_value/index.html
@@ -58,55 +58,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/MAX_VALUE
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html
index ba746ab29c..da639def78 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html
@@ -45,54 +45,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/MIN_VALUE
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Number.MAX_VALUE")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/nan/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/nan/index.html
index 03f0bf5fb0..62906ea42a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/nan/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/nan/index.html
@@ -47,55 +47,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/NaN
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html
index 62112cb949..88189e6bf7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html
@@ -56,54 +56,11 @@ if (smallNumber == Number.NEGATIVE_INFINITY) {
</tr>
</tbody>
</table>
-<h2 id="浏览器规范">浏览器规范</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Number.POSITIVE_INFINITY")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/parsefloat/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/parsefloat/index.html
index 705c63b712..69b12ad433 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/parsefloat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/parsefloat/index.html
@@ -22,9 +22,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/parseFloat
<h3 id="返回值">返回值</h3>
-<dl>
- <dd>给定值被解析成浮点数,如果无法被解析成浮点数,则返回<code>NaN</code></dd>
-</dl>
+<p>给定值被解析成浮点数,如果无法被解析成浮点数,则返回<code>NaN</code></p>
<h2 id="描述">描述</h2>
@@ -49,57 +47,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/parseFloat
</tbody>
</table>
-<h2 id="Browser_compatibility">浏览器兼容性</h2>
-
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/positive_infinity/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/positive_infinity/index.html
index e2b77c5d51..8e572bf740 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/positive_infinity/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/positive_infinity/index.html
@@ -71,55 +71,7 @@ if (bigNumber == Number.POSITIVE_INFINITY) {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/toexponential/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/toexponential/index.html
index 250b8ebc76..1ab25c66cb 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/toexponential/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/toexponential/index.html
@@ -80,55 +80,7 @@ alert("77 .toExponential() is " + 77 .toExponential()); //输出 7.7e+1</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_Also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html
index 1203b0c4fc..7e92f1908b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html
@@ -38,7 +38,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/toFixed
<p>一个数值的字符串表现形式,不使用指数记数法,而是在小数点后有 digits(注:digits具体值取决于传入参数)位数字。该数值在必要时进行四舍五入,另外在必要时会用 0 来填充小数部分,以便小数部分有指定的位数。 如果数值大于 1e+21,该方法会简单调用 {{jsxref("Number.prototype.toString()")}}并返回一个指数记数法格式的字符串。</p>
<div class="warning">
-<p><strong>Warning:</strong> 浮点数不能精确地用二进制表示所有小数。这可能会导致意外的结果,例如 <code>0.1 + 0.2 === 0.3</code> 返回 <code>false</code> .</p>
+<p><strong>警告:</strong>浮点数不能精确地用二进制表示所有小数。这可能会导致意外的结果,例如 <code>0.1 + 0.2 === 0.3</code> 返回 <code>false</code> .</p>
</div>
<h2 id="Example">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/tolocalestring/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/tolocalestring/index.html
index 20283fdfdd..acb1e71543 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/tolocalestring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/tolocalestring/index.html
@@ -24,7 +24,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/toLocaleString
<p>查阅<a href="#Browser_Compatibility">浏览器兼容性</a>部分,了解哪些浏览器支持 <code>locales</code> 和 <code>options</code> 参数,通过<a href="#Checking_for_support_for_locales_and_options_arguments">示例: 检查 <code>locales</code> 和 <code>options</code> 参数的支持</a>了解特征检测。</p>
<div class="note">
-<p><strong>注意:</strong> ECMAScript 国际化 API,在 Firefox 29 中得以实施,增加了 <code>locales</code> 参数的 <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString"><code>Number.toLocaleString</code></a> 方法。如果参数为 <code>undefined</code>,此方法返回本地操作系统指定的位数,而 Firefox 的早期版本中返回<a href="https://en.wikipedia.org/wiki/Arabic_numerals">阿拉伯语</a>数字。这一变化已被报告为向后影响的兼容性问题并可能会被尽快修复。({{ bug(999003) }})</p>
+<p><strong>备注:</strong> ECMAScript 国际化 API,在 Firefox 29 中得以实施,增加了 <code>locales</code> 参数的 <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString"><code>Number.toLocaleString</code></a> 方法。如果参数为 <code>undefined</code>,此方法返回本地操作系统指定的位数,而 Firefox 的早期版本中返回<a href="https://en.wikipedia.org/wiki/Arabic_numerals">阿拉伯语</a>数字。这一变化已被报告为向后影响的兼容性问题并可能会被尽快修复。({{ bug(999003) }})</p>
</div>
<div>{{page('/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat', '参数')}}</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/toprecision/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/toprecision/index.html
index ff4e3425c3..7bc5318e5c 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/toprecision/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/toprecision/index.html
@@ -74,55 +74,7 @@ console.log((1234.5).toPrecision(2)); // "1.2e+3"
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_Also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/tosource/index.html
index ad95155237..87b075c6f8 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/tosource/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/tosource/index.html
@@ -26,54 +26,11 @@ Number.toSource();
<p>该方法通常被 JavaScript 内部调用,而不是在代码中显示调用。</p>
<h2 id="规范">规范</h2>
<p>不是任何标准的一部分。在 JavaScript 1.3 被实现。</p>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_Also">相关链接</h2>
<ul>
<li>{{jsxref("Object.prototype.toSource()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/tostring/index.html
index 7c438cb6f7..bafb633398 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/tostring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/tostring/index.html
@@ -20,7 +20,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/toString
<dl>
<dt>radix</dt>
- <dd>指定要用于数字到字符串的转换的基数(从2到36)。如果未指定 <samp>radix</samp> 参数,则默认值为 10。</dd>
+ <dd>指定要用于数字到字符串的转换的基数(从2到36)。如果未指定 <code>radix</code> 参数,则默认值为 10。</dd>
</dl>
<h3 id="异常信息">异常信息</h3>
@@ -90,55 +90,7 @@ console.log((-0xff).toString(2)); // 输出 '-11111111'</code>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/valueof/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/valueof/index.html
index dc97f672f8..af9fb3c0ff 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/valueof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/valueof/index.html
@@ -65,55 +65,7 @@ console.log(typeof num); // number
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/__definegetter__/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/__definegetter__/index.html
index b0229c493e..d8fb71db90 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/__definegetter__/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/__definegetter__/index.html
@@ -47,55 +47,11 @@ console.log(o.gimmeFive); // 5
</pre>
<h2 id="Specifications">规范</h2>
<p>不属于任何规范。</p>
-<h2 id="Browser_compatibility">浏览器兼容性</h2>
-<div>
- {{CompatibilityTable}}</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatIE("11")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Object.prototype.__defineSetter__()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/__definesetter__/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/__definesetter__/index.html
index b854a96ea0..519bedad8e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/__definesetter__/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/__definesetter__/index.html
@@ -32,55 +32,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__
<p><code>__defineSetter__</code> 方法可以为一个已经存在的对象设置(新建或修改)访问器属性,而 {{jsxref("Operators/set", "对象字面量中的 set 语法", "", 1)}} 只能在新建一个对象时使用。</p>
<h2 id="Specifications">规范</h2>
<p>不属于任何规范。</p>
-<h2 id="Browser_compatibility">浏览器兼容性</h2>
-<div>
- {{CompatibilityTable}}</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatIE("11")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Object.prototype.__defineGetter__()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/__lookupgetter__/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/__lookupgetter__/index.html
index 52fe502257..5c722986ef 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/__lookupgetter__/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/__lookupgetter__/index.html
@@ -59,55 +59,7 @@ Object.getOwnPropertyDescriptor(prototype, "foo").get
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{CompatVersionUnknown() }}</td>
- <td>{{CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown() }}</td>
- <td>{{CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/__lookupsetter__/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/__lookupsetter__/index.html
index 859318a8bc..db8cff8eba 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/__lookupsetter__/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/__lookupsetter__/index.html
@@ -77,55 +77,7 @@ Object.getOwnPropertyDescriptor(obj, 'foo').set;
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatIE("11")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/assign/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/assign/index.html
index c81cacda30..4b8696d2ab 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/assign/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/assign/index.html
@@ -45,8 +45,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/assign
<p>在出现错误的情况下,例如,如果属性不可写,会引发{{jsxref("TypeError")}},如果在引发错误之前添加了任何属性,则可以更改<code>target</code>对象。</p>
-<div class="blockIndicator note">
-<p>注意,<code>Object.assign</code> 不会在那些<code>source</code>对象值为 {{jsxref("null")}} 或 {{jsxref("undefined")}} 的时候抛出错误。</p>
+<div class="note">
+ <p><strong>备注:</strong> <code>Object.assign</code> 不会在那些<code>source</code>对象值为 {{jsxref("null")}} 或 {{jsxref("undefined")}} 的时候抛出错误。</p>
</div>
<h2 id="Polyfill_2">Polyfill</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/defineproperty/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/defineproperty/index.html
index 74b6088e27..6e3f75cea7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/defineproperty/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/defineproperty/index.html
@@ -43,7 +43,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/defineProperty
<p>被传递给函数的对象。</p>
<div class="note">
-<p>在ES6中,由于 Symbol类型的特殊性,用Symbol类型的值来做对象的key与常规的定义或修改不同,而<code>Object.defineProperty</code> 是定义key为Symbol的属性的方法之一。</p>
+<p><strong>备注:</strong>在ES6中,由于 Symbol类型的特殊性,用Symbol类型的值来做对象的key与常规的定义或修改不同,而<code>Object.defineProperty</code> 是定义key为Symbol的属性的方法之一。</p>
</div>
<h2 id="描述">描述</h2>
@@ -94,9 +94,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/defineProperty
<h4 id="描述符可拥有的键值">描述符可拥有的键值</h4>
-<dl>
- <dt>
- <table class="standard-table">
+<table class="standard-table">
<caption></caption>
<tbody>
<tr>
@@ -128,8 +126,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/defineProperty
</tr>
</tbody>
</table>
- </dt>
-</dl>
<p>如果一个描述符不具有 <code>value</code>、<code>writable</code>、<code>get</code> 和 <code>set</code> 中的任意一个键,那么它将被认为是一个数据描述符。如果一个描述符同时拥有 <code>value</code> 或 <code>writable</code> 和 <code>get</code> 或 <code>set</code> 键,则会产生一个异常。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/entries/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/entries/index.html
index ee59ebba46..db3fac1a89 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/entries/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/entries/index.html
@@ -29,9 +29,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/entries
<h3 id="返回值">返回值</h3>
-<dl>
- <dd>给定对象自身可枚举属性的键值对数组。</dd>
-</dl>
+<p>给定对象自身可枚举属性的键值对数组。</p>
<h2 id="描述">描述</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/freeze/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/freeze/index.html
index 6237badeea..6cc6d1c17a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/freeze/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/freeze/index.html
@@ -86,7 +86,7 @@ Object.defineProperty(obj, 'foo', { value: 'eit' });
Object.setPrototypeOf(obj, { x: 20 })
obj.__proto__ = { x: 20 }</pre>
-<h3 class="brush: js" id="冻结数组">冻结数组</h3>
+<h3 id="冻结数组">冻结数组</h3>
<pre class="brush: js">let a = [0];
Object.freeze(a); // 现在数组不能被修改了.
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptors/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptors/index.html
index 22df48a042..52875fee26 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptors/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptors/index.html
@@ -41,7 +41,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDes
<p>创建子类的典型方法是定义子类,将其原型设置为超类的实例,然后在该实例上定义属性。这么写很不优雅,特别是对于 getters 和 setter 而言。 相反,您可以使用此代码设置原型:</p>
-<pre class="brush: js line-numbers language-js">function superclass() {}
+<pre class="brush: js">function superclass() {}
superclass.prototype = {
// 在这里定义方法和属性
};
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertysymbols/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertysymbols/index.html
index f763ec6856..ef1b0ba509 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertysymbols/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertysymbols/index.html
@@ -21,12 +21,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySym
<dl>
<dt><code>obj</code></dt>
<dd>要返回 Symbol 属性的对象。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
- </dt>
- <dd>在给定对象自身上找到的所有 Symbol 属性的数组。</dd>
</dl>
+<h3 id="返回值">返回值</h3>
+
+<p>在给定对象自身上找到的所有 Symbol 属性的数组。</p>
+
<h2 id="Description">描述</h2>
<p>与{{jsxref("Object.getOwnPropertyNames()")}}类似,您可以将给定对象的所有符号属性作为 Symbol 数组获取。 请注意,{{jsxref("Object.getOwnPropertyNames()")}}本身不包含对象的 Symbol 属性,只包含字符串属性。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/getprototypeof/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/getprototypeof/index.html
index ae9a9e5866..a7f274bbfa 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/getprototypeof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/getprototypeof/index.html
@@ -17,16 +17,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf
<pre class="syntaxbox"><code>Object.getPrototypeOf(<em>object</em>)</code>
</pre>
-<dl>
- <dt>
- <h3 id="参数">参数<code>obj</code></h3>
- </dt>
- <dd>要返回其原型的对象。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
- </dt>
- <dd>给定对象的原型。如果没有继承属性,则返回 {{jsxref("null")}} 。</dd>
-</dl>
+<h3 id="参数">参数<code>obj</code></h3>
+
+<p>要返回其原型的对象。</p>
+
+<h3 id="返回值">返回值</h3>
+
+<p>给定对象的原型。如果没有继承属性,则返回 {{jsxref("null")}} 。</p>
<p>{{EmbedInteractiveExample("pages/js/object-getprototypeof.html")}}</p>
@@ -42,7 +39,7 @@ Object.getPrototypeOf(reg) === RegExp.prototype; // true</pre>
<h3 id="说明">说明</h3>
<div class="note">
-<p><strong>Object.getPrototypeOf(Object)  不是  Object.prototype</strong></p>
+<p><strong>备注:</strong></p>
</div>
<pre class="brush: js">JavaScript中的 <strong><a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></strong> 是构造函数(创建对象的包装器)。
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/isextensible/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/isextensible/index.html
index 1a515b96ff..460aa64a98 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/isextensible/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/isextensible/index.html
@@ -85,53 +85,7 @@ Object.isExtensible(1);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Firefox (Gecko)</th>
- <th>Chrome</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4 (2.0)</td>
- <td>6</td>
- <td>9</td>
- <td>12</td>
- <td>5.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Android</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/isfrozen/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/isfrozen/index.html
index cc428900b0..bb57973679 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/isfrozen/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/isfrozen/index.html
@@ -22,12 +22,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/isFrozen
<dl>
<dt><code>obj</code></dt>
<dd>被检测的对象。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
- </dt>
- <dd>表示给定对象是否被冻结的{{jsxref("Boolean")}}。</dd>
</dl>
+<h3 id="返回值">返回值</h3>
+
+<p>表示给定对象是否被冻结的{{jsxref("Boolean")}}。</p>
+
<h2 id="Description">描述</h2>
<p>一个对象是冻结的是指它不可{{jsxref("Object.isExtensible", "扩展")}},所有属性都是不可配置的,且所有数据属性(即没有getter或setter组件的访问器的属性)都是不可写的。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/isprototypeof/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/isprototypeof/index.html
index fb360e1ec1..98bef633c7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/isprototypeof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/isprototypeof/index.html
@@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf
<p><code><strong>isPrototypeOf()</strong></code> 方法用于测试一个对象是否存在于另一个对象的原型链上。</p>
<div class="note">
-<p><code>isPrototypeOf()</code> 与 {{jsxref("Operators/instanceof", "instanceof")}} 运算符不同。在表达式 "<code>object instanceof AFunction</code>"中,<code>object</code> 的原型链是针对 <code>AFunction.prototype</code> 进行检查的,而不是针对 <code>AFunction</code> 本身。</p>
+<p><strong>备注:</strong><code>isPrototypeOf()</code> 与 {{jsxref("Operators/instanceof", "instanceof")}} 运算符不同。在表达式 "<code>object instanceof AFunction</code>"中,<code>object</code> 的原型链是针对 <code>AFunction.prototype</code> 进行检查的,而不是针对 <code>AFunction</code> 本身。</p>
</div>
<h2 id="语法">语法</h2>
@@ -107,57 +107,7 @@ console.log(Object.prototype.isPrototypeOf(baz)); // true
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/preventextensions/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/preventextensions/index.html
index 09c0ff1c1a..72fb597281 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/preventextensions/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/preventextensions/index.html
@@ -23,12 +23,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/preventExtensions
<dl>
<dt><code>obj</code></dt>
<dd>将要变得不可扩展的对象。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
- </dt>
- <dd>已经不可扩展的对象。</dd>
</dl>
+<h3 id="返回值">返回值</h3>
+
+<p>已经不可扩展的对象。</p>
+
<h2 id="Description">描述</h2>
<p>如果一个对象可以添加新的属性,则这个对象是可扩展的。<code>Object.preventExtensions()</code>将对象标记为不再可扩展,这样它将永远不会具有它被标记为不可扩展时持有的属性之外的属性。注意,一般来说,不可扩展对象的属性可能仍然可被<em>删除</em>。尝试将新属性添加到不可扩展对象将静默失败或抛出{{jsxref("TypeError")}}(最常见的情况是{{jsxref("Functions_and_function_scope/Strict_mode", "strict mode", "", 1)}}中,但不排除其他情况)。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/proto/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/proto/index.html
index d0ac7d3eb6..90f9790a0b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/proto/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/proto/index.html
@@ -13,11 +13,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/proto
<div>{{JSRef}}{{Deprecated_header}}</div>
<div class="warning">
-<p><strong>警告:</strong> 通过现代浏览器的操作属性的便利性,可以改变一个对象的 <code>[[Prototype]]</code> 属性, 这种行为在每一个JavaScript引擎和浏览器中都是一个非常慢且影响性能的操作,使用这种方式来改变和继承属性是对性能影响非常严重的,并且性能消耗的时间也不是简单的花费在 <code>obj.__proto__ = ...</code> 语句上, 它还会影响到所有继承来自该 <code>[[Prototype]]</code> 的对象,如果你关心性能,你就不应该在一个对象中修改它的 [[Prototype]]。相反, 创建一个新的且可以继承 <code>[[Prototype]]</code> 的对象,推荐使用 {{jsxref("Object.create()")}}。</p>
+<p><strong>警告:</strong>通过现代浏览器的操作属性的便利性,可以改变一个对象的 <code>[[Prototype]]</code> 属性, 这种行为在每一个JavaScript引擎和浏览器中都是一个非常慢且影响性能的操作,使用这种方式来改变和继承属性是对性能影响非常严重的,并且性能消耗的时间也不是简单的花费在 <code>obj.__proto__ = ...</code> 语句上, 它还会影响到所有继承来自该 <code>[[Prototype]]</code> 的对象,如果你关心性能,你就不应该在一个对象中修改它的 [[Prototype]]。相反, 创建一个新的且可以继承 <code>[[Prototype]]</code> 的对象,推荐使用 {{jsxref("Object.create()")}}。</p>
</div>
<div class="warning">
-<p><strong>警告:</strong> 当<code>Object.prototype.__proto__</code> 已被大多数浏览器厂商所支持的今天,其存在和确切行为仅在ECMAScript 2015规范中被标准化为传统功能,以确保Web浏览器的兼容性。为了更好的支持,建议只使用 {{jsxref("Object.getPrototypeOf()")}}。</p>
+<p><strong>警告:</strong>当<code>Object.prototype.__proto__</code> 已被大多数浏览器厂商所支持的今天,其存在和确切行为仅在ECMAScript 2015规范中被标准化为传统功能,以确保Web浏览器的兼容性。为了更好的支持,建议只使用 {{jsxref("Object.getPrototypeOf()")}}。</p>
</div>
<div>{{jsxref("Object.prototype")}} 的 <code>__proto__</code>  属性是一个访问器属性(一个getter函数和一个setter函数), 暴露了通过它访问的对象的内部<code>[[Prototype]]</code> (一个对象或 {{jsxref("Global_Objects/null", "null")}})。</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html
index 06de1bcc7c..a73a8c612c 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html
@@ -21,7 +21,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf
<div></div>
<div class="warning">
-<p><strong>警告:</strong> 由于现代 JavaScript 引擎优化属性访问所带来的特性的关系,更改对象的 <code>[[Prototype]]</code>在<em><strong>各个</strong></em>浏览器和 JavaScript 引擎上都是一个很慢的操作。其在更改继承的性能上的影响是微妙而又广泛的,这不仅仅限于 <code>obj.__proto__ = ...</code> 语句上的时间花费,而且可能会延伸到<em><strong>任何</strong></em>代码,那些可以访问<em><strong>任何</strong></em><code>[[Prototype]]</code>已被更改的对象的代码。如果你关心性能,你应该避免设置一个对象的 <code>[[Prototype]]</code>。相反,你应该使用 {{jsxref("Object.create()")}}来创建带有你想要的<code>[[Prototype]]</code>的新对象。</p>
+<p><strong>警告:</strong>由于现代 JavaScript 引擎优化属性访问所带来的特性的关系,更改对象的 <code>[[Prototype]]</code>在<em><strong>各个</strong></em>浏览器和 JavaScript 引擎上都是一个很慢的操作。其在更改继承的性能上的影响是微妙而又广泛的,这不仅仅限于 <code>obj.__proto__ = ...</code> 语句上的时间花费,而且可能会延伸到<em><strong>任何</strong></em>代码,那些可以访问<em><strong>任何</strong></em><code>[[Prototype]]</code>已被更改的对象的代码。如果你关心性能,你应该避免设置一个对象的 <code>[[Prototype]]</code>。相反,你应该使用 {{jsxref("Object.create()")}}来创建带有你想要的<code>[[Prototype]]</code>的新对象。</p>
</div>
<h2 id="Syntax">语法</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/tostring/index.html
index 55310e85b0..23b9e41248 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/tostring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/tostring/index.html
@@ -35,7 +35,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/toString
o.toString(); // 返回 [object Object]
</pre>
-<div class="note"><strong>注意:</strong>如 ECMAScript 5 和随后的 Errata 中所定义,从 JavaScript 1.8.5 开始,<code>toString()</code> 调用 {{jsxref("null")}} 返回<code>[object <em>Null</em>]</code>,{{jsxref("undefined")}} 返回 <code>[object Undefined]</code>。请参阅下面的{{anch("Using_toString()_to_detect_object_class", "使用 <code>toString()</code> 检测对象类型")}}。</div>
+<div class="note">
+<p><strong>备注:</strong>如 ECMAScript 5 和随后的 Errata 中所定义,从 JavaScript 1.8.5 开始,<code>toString()</code> 调用 {{jsxref("null")}} 返回<code>[object <em>Null</em>]</code>,{{jsxref("undefined")}} 返回 <code>[object Undefined]</code>。请参阅下面的{{anch("Using_toString()_to_detect_object_class", "使用 <code>toString()</code> 检测对象类型")}}。</p>
+</div>
<h2 id="示例">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html
index 6280feeb05..3fa248c3c5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html
@@ -88,7 +88,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/valueOf
<pre class="brush: js">myNumberType.valueOf()</pre>
<div class="note">
-<p><strong>注意:</strong>字符串上下文中的对象通过 {{jsxref("Object.toString", "toString()")}}方法转换,这与使用<code>valueOf</code>转换为原始字符串的{{jsxref("String")}}对象不同。所有对象都能转换成一个“<code>[object <em>类型</em>]</code>”这种格式的字符串。但是很多对象不能转换为数字,布尔或函数。</p>
+<p><strong>备注:</strong>字符串上下文中的对象通过 {{jsxref("Object.toString", "toString()")}}方法转换,这与使用<code>valueOf</code>转换为原始字符串的{{jsxref("String")}}对象不同。所有对象都能转换成一个“<code>[object <em>类型</em>]</code>”这种格式的字符串。但是很多对象不能转换为数字,布尔或函数。</p>
</div>
<h2 id="示例">示例</h2>
@@ -147,7 +147,7 @@ console.log( str2.valueOf() === str2 ); // false</pre>
<h3 id="改写_.prototype.valueof">改写 .prototype.valueof</h3>
-<pre class="brush: js line-numbers language-js">function MyNumberType(n) {
+<pre class="brush: js">function MyNumberType(n) {
this.number = n;
}
diff --git a/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.html b/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.html
index eaa80b6179..9e1dbd1322 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.html
@@ -28,9 +28,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/parseFloat
<h3 id="返回值">返回值</h3>
-<dl>
- <dd>给定值被解析成浮点数。如果给定值不能被转换成数值,则会返回 {{jsxref("NaN")}}。</dd>
-</dl>
+<p>给定值被解析成浮点数。如果给定值不能被转换成数值,则会返回 {{jsxref("NaN")}}。</p>
<h2 id="描述">描述</h2>
@@ -55,7 +53,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/parseFloat
<p>下面的例子都返回<strong>3.14</strong></p>
-<pre class="brush: js line-numbers language-js">parseFloat(3.14);
+<pre class="brush: js">parseFloat(3.14);
parseFloat('3.14');
parseFloat(' 3.14 ');
parseFloat('314e-2');
@@ -74,7 +72,7 @@ parseFloat({ toString: function() { return "3.14" } });</pre>
<p>以下例子均返回 <code>900719925474099300</code>,当整数太大以至于不能被转换时将失去精度。</p>
-<pre class="brush: js line-numbers language-js">parseFloat(900719925474099267n);
+<pre class="brush: js">parseFloat(900719925474099267n);
parseFloat('900719925474099267n');</pre>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html b/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html
index 6dd0b83e6b..d904b20451 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html
@@ -26,8 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/parseInt
<dt><code>string</code></dt>
<dd>要被解析的值。如果参数不是一个字符串,则将其转换为字符串(使用  <code><a href="http://www.ecma-international.org/ecma-262/6.0/#sec-tostring">ToString</a> </code>抽象操作)。字符串开头的空白符将会被忽略。</dd>
<dt><code><var>radix</var></code><var> {{optional_inline}}</var></dt>
- <dd>从 <code>2</code> 到 <code>36</code>,表示字符串的基数。例如指定 <code>16</code> 表示被解析值是十六进制数。请注意,10不是默认值!</dd>
- <dd class="blockIndicator warning">文章后面的<a href="#描述">描述</a>解释了当参数 <code>radix</code> 不传时该函数的具体行为。</dd>
+ <dd>从 <code>2</code> 到 <code>36</code>,表示字符串的基数。例如指定 <code>16</code> 表示被解析值是十六进制数。请注意,10不是默认值!文章后面的描述解释了当参数 <code>radix</code> 不传时该函数的具体行为。</dd>
</dl>
<h3 id="返回值">返回值</h3>
@@ -43,7 +42,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/parseInt
<pre>parseInt('123', 5) // 将'123'看作5进制数,返回十进制数38 =&gt; 1*5^2 + 2*5^1 + 3*5^0 = 38</pre>
-<h2 id="描述_2"><a>描述</a></h2>
+<h2 id="描述_2">描述</h2>
<p><code>parseInt</code>函数将其第一个参数转换为一个字符串,对该字符串进行解析,然后返回一个整数或 <code>NaN</code>。</p>
@@ -72,8 +71,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/parseInt
<p>要将一个数字转换为特定的 <code>radix</code> 中的字符串字段,请使用 <code>thatNumber.toString(radix)</code>函数。</p>
-<div class="blockIndicator warning">
-<p>{{jsxref("BigInt")}}。警告: <code>parseInt</code>将 {{jsxref("BigInt")}}转换为{{jsxref("Number")}},并在这个过程中失去了精度。这是因为拖尾的非数字值,包括 "n",会被丢弃。</p>
+<div class="warning">
+<p><strong>警告:</strong>{{jsxref("BigInt")}}。警告: <code>parseInt</code>将 {{jsxref("BigInt")}}转换为{{jsxref("Number")}},并在这个过程中失去了精度。这是因为拖尾的非数字值,包括 "n",会被丢弃。</p>
</div>
<h2 id="示例">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/any/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/any/index.html
index b61b833f5f..df6841de79 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/any/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/any/index.html
@@ -13,8 +13,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/any
<p><code>Promise.any()</code> 接收一个{{JSxRef("Promise")}}可迭代对象,只要其中的一个 <code>promise</code> 成功,就返回那个已经成功的 <code>promise</code> 。如果可迭代对象中没有一个 <code>promise</code> 成功(即所有的 <code>promises</code> 都失败/拒绝),就返回一个失败的 <code>promise </code>和{{JSxRef("Global_Objects/AggregateError", "AggregateError")}}类型的实例,它是 {{JSxRef("Error")}} 的一个子类,用于把单一的错误集合在一起。本质上,这个方法和{{JSxRef("Promise.all()")}}是相反的。</p>
-<div class="blockIndicator warning">
-<p><strong>注意!</strong> <code>Promise.any()</code> 方法依然是实验性的,尚未被所有的浏览器完全支持。它当前处于 <a href="https://github.com/tc39/proposal-promise-any">TC39 第四阶段草案(Stage 4)</a></p>
+<div class="warning">
+<p><strong>警告:</strong><code>Promise.any()</code> 方法依然是实验性的,尚未被所有的浏览器完全支持。它当前处于 <a href="https://github.com/tc39/proposal-promise-any">TC39 第四阶段草案(Stage 4)</a></p>
</div>
<h2 id="语法">语法</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html
index 70fc6512cb..83fd96107e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html
@@ -49,7 +49,7 @@ p.finally(function() {
</ul>
<div class="note">
-<p><strong>注意:</strong> 在<code>finally</code>回调中 <code>throw</code>(或返回被拒绝的promise)将以 <code>throw()</code> 指定的原因拒绝新的promise.</p>
+<p><strong>备注:</strong> 在<code>finally</code>回调中 <code>throw</code>(或返回被拒绝的promise)将以 <code>throw()</code> 指定的原因拒绝新的promise.</p>
</div>
<h2 id="示例">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/index.html
index dd878cb92d..8b6cd1cd19 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/index.html
@@ -32,14 +32,14 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise
<p>因为 <code>{{jsxref("Promise.then", "Promise.prototype.then")}}</code> 和  <code>{{jsxref("Promise.catch", "Promise.prototype.catch")}}</code> 方法返回的是 promise, 所以它们可以被链式调用。</p>
-<p><img alt="" src="https://mdn.mozillademos.org/files/8633/promises.png" style="height: 297px; width: 801px;"></p>
+<p><img alt="" src="https://mdn.mozillademos.org/files/8633/promises.png"></p>
<div class="note">
-<p><strong>不要和惰性求值混淆:</strong> 有一些语言中有惰性求值和延时计算的特性,它们也被称为“promises”,例如 Scheme。JavaScript 中的 promise 代表的是已经正在发生的进程, 而且可以通过回调函数实现链式调用。 如果您想对一个表达式进行惰性求值,就考虑一下使用无参数的"<a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions">箭头函数</a>":  <code>f = () =&gt;</code><em><code>表达式</code> </em>来创建惰性求值的表达式<em>,</em>使用 <code>f()</code><strong> </strong>求值。</p>
+<p><strong>备注:</strong> 有一些语言中有惰性求值和延时计算的特性,它们也被称为“promises”,例如 Scheme。JavaScript 中的 promise 代表的是已经正在发生的进程, 而且可以通过回调函数实现链式调用。 如果您想对一个表达式进行惰性求值,就考虑一下使用无参数的"<a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions">箭头函数</a>":  <code>f = () =&gt;</code><em><code>表达式</code> </em>来创建惰性求值的表达式<em>,</em>使用 <code>f()</code><strong> </strong>求值。</p>
</div>
<div class="note">
-<p><strong>注意:</strong> 如果一个 promise 已经被兑现(fulfilled)或被拒绝(rejected),那么我们也可以说它处于<em>已敲定(settled)</em>状态。您还会听到一个经常跟 promise 一起使用的术语:<em>已决议(resolved)</em>,它表示 promise 已经处于已敲定(settled)状态,或者为了匹配另一个 promise 的状态被"锁定"了。Domenic Denicola 的 <a href="https://github.com/domenic/promises-unwrapping/blob/master/docs/states-and-fates.md">States and fates</a> 中有更多关于 promise 术语的细节可以供您参考。</p>
+<p><strong>备注:</strong> 如果一个 promise 已经被兑现(fulfilled)或被拒绝(rejected),那么我们也可以说它处于<em>已敲定(settled)</em>状态。您还会听到一个经常跟 promise 一起使用的术语:<em>已决议(resolved)</em>,它表示 promise 已经处于已敲定(settled)状态,或者为了匹配另一个 promise 的状态被"锁定"了。Domenic Denicola 的 <a href="https://github.com/domenic/promises-unwrapping/blob/master/docs/states-and-fates.md">States and fates</a> 中有更多关于 promise 术语的细节可以供您参考。</p>
</div>
<h3 id="Promise的链式调用">Promise的链式调用</h3>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/reject/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/reject/index.html
index d733feaa6a..40aa69e021 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/reject/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/reject/index.html
@@ -27,9 +27,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/reject
<h3 id="返回值">返回值</h3>
-<dl>
- <dd>一个给定原因了的被拒绝的 {{jsxref("Promise")}}。</dd>
-</dl>
+<p>一个给定原因了的被拒绝的 {{jsxref("Promise")}}。</p>
<h2 id="Description">描述</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html
index cce699c0bc..4e50535f20 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html
@@ -15,8 +15,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/resolve
<div></div>
-<div class="blockIndicator warning">
-<p>警告:不要在解析为自身的thenable 上调用<code>Promise.resolve</code>。这将导致无限递归,因为它试图展平无限嵌套的promise。一个例子是将它与Angular中的异步管道一起使用。在<a href="https://angular.io/guide/template-syntax#avoid-side-effects">此处</a>了解更多信息。</p>
+<div class="warning">
+<p><strong>警告:</strong>不要在解析为自身的thenable 上调用<code>Promise.resolve</code>。这将导致无限递归,因为它试图展平无限嵌套的promise。一个例子是将它与Angular中的异步管道一起使用。在<a href="https://angular.io/guide/template-syntax#avoid-side-effects">此处</a>了解更多信息。</p>
</div>
<div>例如下例代码</div>
<pre class="brush: js">
@@ -38,9 +38,7 @@ Promise.resolve(thenable) //这会造成一个死循环
<h3 id="参数">参数</h3>
-<dl>
- <dt>value</dt>
-</dl>
+<p>value</p>
<p>将被<code>Promise</code>对象解析的参数,也可以是一个<code>Promise</code>对象,或者是一个thenable。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html
index 6717a21da3..558603380e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html
@@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/then
<div>{{EmbedInteractiveExample("pages/js/promise-then.html")}}</div>
<div class="note">
-<p>注意:如果忽略针对某个状态的回调函数参数,或者提供非函数 (nonfunction) 参数,那么 <code>then</code> 方法将会丢失关于该状态的回调函数信息,但是并不会产生错误。如果调用 <code>then</code> 的 <code>Promise</code> 的状态(fulfillment 或 rejection)发生改变,但是 <code>then</code> 中并没有关于这种状态的回调函数,那么 <code>then</code> 将创建一个没有经过回调函数处理的新 <code>Promise</code> 对象,这个新 <code>Promise</code> 只是简单地接受调用这个 <code>then</code> 的原 <code>Promise</code> 的终态作为它的终态。</p>
+<p><strong>备注:</strong>如果忽略针对某个状态的回调函数参数,或者提供非函数 (nonfunction) 参数,那么 <code>then</code> 方法将会丢失关于该状态的回调函数信息,但是并不会产生错误。如果调用 <code>then</code> 的 <code>Promise</code> 的状态(fulfillment 或 rejection)发生改变,但是 <code>then</code> 中并没有关于这种状态的回调函数,那么 <code>then</code> 将创建一个没有经过回调函数处理的新 <code>Promise</code> 对象,这个新 <code>Promise</code> 只是简单地接受调用这个 <code>then</code> 的原 <code>Promise</code> 的终态作为它的终态。</p>
</div>
<h2 id="语法">语法</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/defineproperty/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/defineproperty/index.html
index 661a9a7681..f5f1b6b523 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/defineproperty/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/defineproperty/index.html
@@ -122,55 +122,7 @@ Object.defineProperty(p, 'name', {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/deleteproperty/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/deleteproperty/index.html
index 5d3f631758..6618dc9c23 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/deleteproperty/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/deleteproperty/index.html
@@ -90,55 +90,7 @@ delete p.a; // "called: a"
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/get/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/get/index.html
index 36d60fab7e..2bc3c917f3 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/get/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/get/index.html
@@ -119,55 +119,7 @@ p.a; //会抛出TypeError
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/getownpropertydescriptor/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/getownpropertydescriptor/index.html
index 7640828b95..78df24c74d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/getownpropertydescriptor/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/getownpropertydescriptor/index.html
@@ -109,55 +109,7 @@ Object.getOwnPropertyDescriptor(p, 'a'); // TypeError is thrown
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/has/index.html
index 64545b27d2..32bebb31c2 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/has/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/has/index.html
@@ -115,57 +115,9 @@ var p = new Proxy(obj, {
</tbody>
</table>
-<h2 id="浏览器支持">浏览器支持</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="其他">其他</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/ownkeys/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/ownkeys/index.html
index d050bb0b71..316a273352 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/ownkeys/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/ownkeys/index.html
@@ -118,57 +118,9 @@ console.log(Object.getOwnPropertyNames(p));
</tbody>
</table>
-<h2 id="浏览器兼容">浏览器兼容</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("18")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="兼容性注意事项">兼容性注意事项</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/set/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/set/index.html
index 9857c06818..f98aa2ddd9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/set/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/set/index.html
@@ -40,7 +40,7 @@ original_slug: Web/JavaScript/Reference/Global_Objects/Proxy/handler/set
<dt><code><var>receiver</var></code></dt>
<dd>最初被调用的对象。通常是 proxy 本身,但 handler 的 set 方法也有可能在原型链上,或以其他方式被间接地调用(因此不一定是 proxy 本身)。
<div class="note">
- <p><strong>比如:</strong>假设有一段代码执行 <code>obj.name = "jen"</code>, <code><var>obj</var></code> 不是一个 proxy,且自身不含 <code>name</code> 属性,但是它的原型链上有一个 proxy,那么,那个 proxy 的 <code>set()</code> 处理器会被调用,而此时,<code><var>obj</var></code> 会作为 receiver 参数传进来。</p>
+ <p><strong>备注:</strong>假设有一段代码执行 <code>obj.name = "jen"</code>, <code><var>obj</var></code> 不是一个 proxy,且自身不含 <code>name</code> 属性,但是它的原型链上有一个 proxy,那么,那个 proxy 的 <code>set()</code> 处理器会被调用,而此时,<code><var>obj</var></code> 会作为 receiver 参数传进来。</p>
</div>
</dd>
</dl>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/rangeerror/index.html b/files/zh-cn/web/javascript/reference/global_objects/rangeerror/index.html
index 72ca35e7ce..ede4ac91ad 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/rangeerror/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/rangeerror/index.html
@@ -101,55 +101,7 @@ catch (e) {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关连接">相关连接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/referenceerror/index.html b/files/zh-cn/web/javascript/reference/global_objects/referenceerror/index.html
index 2dcc165e43..be371ecde7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/referenceerror/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/referenceerror/index.html
@@ -110,55 +110,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/ReferenceError
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html
index c122d6fe14..f6dbc30635 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html
@@ -128,57 +128,9 @@ d.getFullYear(); // 1776
</tbody>
</table>
-<h2 id="浏览器兼容">浏览器兼容</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>49</td>
- <td>{{CompatGeckoDesktop(42)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile(42)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/defineproperty/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/defineproperty/index.html
index 9fc242fd8f..6524839fe7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/reflect/defineproperty/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/defineproperty/index.html
@@ -40,8 +40,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Reflect/defineProperty
<p><code>Reflect.defineProperty</code> 方法允许精确添加或修改对象上的属性。更多的细节请参阅类似的{{jsxref("Object.defineProperty")}} 。</p>
-<div class="blockIndicator note">
-<p><strong>区别:</strong><code>Object.defineProperty </code>返回一个对象,或者如果属性没有被成功定义,抛出一个 {{jsxref("TypeError")}} 。 相比之下,<code>Reflect.defineProperty</code>方法只返回一个 {{jsxref("Boolean")}} ,来说明该属性是否被成功定义。</p>
+<div class="note">
+<p><strong>备注:</strong><code>Object.defineProperty </code>返回一个对象,或者如果属性没有被成功定义,抛出一个 {{jsxref("TypeError")}} 。 相比之下,<code>Reflect.defineProperty</code>方法只返回一个 {{jsxref("Boolean")}} ,来说明该属性是否被成功定义。</p>
</div>
<h2 id="示例">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/deleteproperty/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/deleteproperty/index.html
index 1a8b8da0ec..c3f9987c9d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/reflect/deleteproperty/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/deleteproperty/index.html
@@ -76,55 +76,7 @@ Reflect.deleteProperty(Object.freeze({foo: 1}), "foo"); // false
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>49</td>
- <td>{{CompatGeckoDesktop(42)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>49</td>
- <td>{{CompatGeckoMobile(42)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/getownpropertydescriptor/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/getownpropertydescriptor/index.html
index e4fdfe36a0..a9c4f7c1e4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/reflect/getownpropertydescriptor/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/getownpropertydescriptor/index.html
@@ -81,55 +81,7 @@ Object.getOwnPropertyDescriptor("foo", 0);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>49</td>
- <td>{{CompatGeckoDesktop(42)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>49</td>
- <td>{{CompatGeckoMobile(42)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/has/index.html
index 3b44079e0d..4fc0aafed7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/reflect/has/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/has/index.html
@@ -75,55 +75,7 @@ Reflect.has(obj, "dormitory"); // false
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>49</td>
- <td>{{CompatGeckoDesktop(42)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile(42)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关连接">相关连接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html
index a10658ab18..232f92f148 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html
@@ -89,55 +89,7 @@ Object.isExtensible(1);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>49</td>
- <td>{{CompatGeckoDesktop(42)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>49</td>
- <td>{{CompatGeckoMobile(42)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@search/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@search/index.html
index 19a14cdf19..8dfb7513f7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@search/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@search/index.html
@@ -91,55 +91,7 @@ console.log(result); // 3
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop(49)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile(49)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@species/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@species/index.html
index a667841afb..aa8a496a11 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@species/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@species/index.html
@@ -53,55 +53,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/@@species
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("49")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("49")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@split/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@split/index.html
index 213f37b1e7..e60c9eaaaf 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@split/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@split/index.html
@@ -89,55 +89,7 @@ console.log(result); // ["(2016)", "(01)", "(02)"]
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop(49)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile(49)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/compile/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/compile/index.html
index b46e92ef6b..1f622c4146 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/compile/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/compile/index.html
@@ -74,55 +74,7 @@ regexObj.compile("new foo", "g");
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/exec/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/exec/index.html
index 549dd3d494..172d75ef0f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/exec/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/exec/index.html
@@ -55,10 +55,10 @@ var result = re.exec('The Quick Brown Fox Jumps Over The Lazy Dog');
<table class="fullwidth-table">
<tbody>
<tr>
- <td class="header">对象</td>
- <td class="header">属性/索引</td>
- <td class="header">描述</td>
- <td class="header">例子</td>
+ <th>对象</th>
+ <th>属性/索引</th>
+ <th>描述</th>
+ <th>例子</th>
</tr>
<tr>
<td rowspan="4"><code>result</code></td>
@@ -137,8 +137,8 @@ while ((myArray = myRe.exec(str)) !== null) {
Found ab. Next match starts at 9
</pre>
-<div class="blockIndicator warning">
-<p>注意:不要把正则表达式字面量(或者{{jsxref("RegExp")}}构造器)放在 <code>while</code> 条件表达式里。由于每次迭代时 {{jsxref("RegExp.lastIndex", "lastIndex")}} 的属性都被重置,如果匹配,将会造成一个死循环。并且要确保使用了'g'标记来进行全局的匹配,否则同样会造成死循环。</p>
+<div class="warning">
+<p><strong>警告:</strong>不要把正则表达式字面量(或者{{jsxref("RegExp")}}构造器)放在 <code>while</code> 条件表达式里。由于每次迭代时 {{jsxref("RegExp.lastIndex", "lastIndex")}} 的属性都被重置,如果匹配,将会造成一个死循环。并且要确保使用了'g'标记来进行全局的匹配,否则同样会造成死循环。</p>
</div>
<h3 id="结合_RegExp_字面量使用_exec">结合 <code>RegExp</code> 字面量使用 <code>exec()</code></h3>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/flags/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/flags/index.html
index e5ffd31071..a53c5b02e7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/flags/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/flags/index.html
@@ -57,55 +57,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/flags
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/global/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/global/index.html
index 95fbabc9d0..d22d0a6fd9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/global/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/global/index.html
@@ -49,54 +49,11 @@ console.log(regex.global) // true
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("RegExp.prototype.ignoreCase")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/ignorecase/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/ignorecase/index.html
index c1802df75a..afaa21ee72 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/ignorecase/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/ignorecase/index.html
@@ -49,54 +49,11 @@ console.log(regex.ignoreCase) // true
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("RegExp.prototype.global")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/index.html
index c697ad26c4..cfbeceef06 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/index.html
@@ -207,8 +207,8 @@ console.log(/[^.]+/.exec(url)[0].substr(7)); // logs "xxx"
</pre>
-<div class="blockIndicator note">
-<p>使用浏览器内建的<a href="/en-US/docs/Web/API/URL_API">URL API</a>而非正则表达式来解析URL是更好的做法</p>
+<div class="note">
+<p><strong>备注:</strong>使用浏览器内建的<a href="/en-US/docs/Web/API/URL_API">URL API</a>而非正则表达式来解析URL是更好的做法</p>
</div>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/input/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/input/index.html
index ede21a2dfa..0df63feb1d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/input/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/input/index.html
@@ -38,55 +38,7 @@ RegExp.$_; // "hi world!"
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html
index ddfe60c595..4201b4649b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html
@@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex
<div>
{{js_property_attributes(1,0,0)}}</div>
<h2 id="语法">语法</h2>
-<pre class="syntaxbox language-html"><var>lastIndex</var> = <var>regExpObj</var>.lastIndex;</pre>
+<pre class="brush: js"><var>lastIndex</var> = <var>regExpObj</var>.lastIndex;</pre>
<h2 id="Description">描述</h2>
<p>只有正则表达式使用了表示全局检索的 "<code>g</code>" 标志时,该属性才会起作用。此时应用下面的规则:</p>
<ul>
@@ -63,54 +63,11 @@ console.log(re.lastIndex);</pre>
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("RegExp.prototype.ignoreCase")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastmatch/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastmatch/index.html
index 74bf3f095d..919978f6ff 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastmatch/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastmatch/index.html
@@ -37,55 +37,7 @@ RegExp['$&amp;']; // "hi"
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastparen/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastparen/index.html
index f7fb73f49f..959d012b13 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastparen/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastparen/index.html
@@ -37,55 +37,7 @@ RegExp['$+']; // "hi"
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/leftcontext/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/leftcontext/index.html
index 9a0a93d3e4..c14364c4db 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/leftcontext/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/leftcontext/index.html
@@ -37,55 +37,7 @@ RegExp['$`']; // "hello "
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/multiline/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/multiline/index.html
index 54b99c15ad..cd0de7293c 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/multiline/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/multiline/index.html
@@ -50,54 +50,11 @@ console.log(regex.multiline) // true
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("RegExp.prototype.global")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/n/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/n/index.html
index 3b961acf2d..0fa992d176 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/n/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/n/index.html
@@ -47,57 +47,9 @@ RegExp.$2; // "Smith"
<p>非标准. 不属于当前的任何规范.</p>
-<h2 id="浏览器适配">浏览器适配</h2>
-
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+{{Compat}}
<h2 id="参见">参见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/regexp/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/regexp/index.html
index 85e5fccd83..8ade9bd6eb 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/regexp/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/regexp/index.html
@@ -102,7 +102,8 @@ new RegExp('ab+c', 'i') // 构造函数
<h2 id="参见">参见</h2>
<ul>
-<a href="/zh-CN/docs/Web/JavaScript/Guide" title="JavaScript/Guide">JavaScript指南</a>中的<a href="/zh-CN/docs/Web/JavaScript/Guide/Regular_Expressions" title="JavaScript/Guide/Regular_Expressions">正则表达式</a>一节
+<li><a href="/zh-CN/docs/Web/JavaScript/Guide">JavaScript指南中的</a></li>
+<li><a href="/zh-CN/docs/Web/JavaScript/Guide/Regular_Expressions">正则表达式一节</a></li>
<li>{{jsxref("String.prototype.match()")}}</li>
<li>{{jsxref("String.prototype.replace()")}}</li>
</ul>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/rightcontext/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/rightcontext/index.html
index d47f844db5..9c33ad6a73 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/rightcontext/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/rightcontext/index.html
@@ -37,55 +37,7 @@ RegExp["$'"]; // " world!"
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html
index 191f1e0feb..375bb2eaf9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html
@@ -50,57 +50,9 @@ console.log(regex.source); // "fooBar",不包含 /.../ 和 "ig"。
</tbody>
</table>
-<h2 id="Browser_compatibility">浏览器兼容性</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/tostring/index.html
index a1007ec670..114e4a0a68 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/tostring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/tostring/index.html
@@ -52,54 +52,11 @@ alert(foo.toString()); // 显示 "/bar/g"
</tr>
</tbody>
</table>
+
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div>
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
- </table>
-</div>
+
+{{Compat}}
+
<h2 id="See_Also">相关链接</h2>
<ul>
<li>{{jsxref("Object.prototype.toString()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/unicode/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/unicode/index.html
index ee559098cd..5e9f39fdb7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/unicode/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/unicode/index.html
@@ -48,57 +48,7 @@ console.log(regex.unicode); // true
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(50)}}</td>
- <td>12 (case folding 13)</td>
- <td>{{CompatGeckoDesktop(46)}}</td>
- <td>{{CompatNo}}</td>
- <td>37</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(50)}}</td>
- <td>{{CompatGeckoMobile(46)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html
index b8df81ca52..9fb4ae67ae 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html
@@ -62,55 +62,7 @@ mySet.has("bar") // false
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>38</td>
- <td>{{CompatGeckoDesktop("19.0")}}</td>
- <td>11</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatNo() }}</td>
- <td>25</td>
- <td>{{CompatGeckoMobile("19.0")}}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接"><strong>相关链接</strong></h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html
index 92eef27f5f..66f0fa83cb 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html
@@ -62,55 +62,7 @@ mySet.has("foo"); // 返回 false,"foo" 已经成功删除
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>38</td>
- <td>{{CompatGeckoDesktop("13.0")}}</td>
- <td>11</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatNo() }}</td>
- <td>38</td>
- <td>{{CompatGeckoMobile("13.0")}}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/entries/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/entries/index.html
index 8f737249ae..5e64cd0069 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/entries/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/entries/index.html
@@ -53,57 +53,9 @@ console.log(setIter.next().value); // ["baz", "baz"]
</tbody>
</table>
-<h2 id="浏览器兼容性">浏览器兼容性 </h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>38</td>
- <td>{{ CompatGeckoDesktop("24") }}</td>
- <td>{{CompatNo}}</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>38</td>
- <td>{{ CompatGeckoMobile("24") }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html
index bfef87e0bd..09706d3444 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html
@@ -86,55 +86,7 @@ new Set(["foo", "bar", undefined]).forEach(logSetElements);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatChrome(38) }}</td>
- <td>{{CompatGeckoDesktop("25.0")}}</td>
- <td>{{ CompatIE("11") }}</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>38</td>
- <td>{{CompatGeckoMobile("25.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="参见">参见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html
index 0174ccd5bc..12c6ad6073 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html
@@ -35,7 +35,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/has
<h3 id="Example:_Testing_size_of_all_array_elements">使用 <code>has</code> 方法</h3>
-<pre class="brush: js line-numbers language-js">var mySet = new Set();
+<pre class="brush: js">var mySet = new Set();
mySet.add('foo');
mySet.has('foo'); // 返回 true
@@ -68,55 +68,7 @@ set1.add({'key1': 1}); // 现在 set1 中有2条(不同引用的)对象了</
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>38</td>
- <td>{{CompatGeckoDesktop("13.0")}}</td>
- <td>11</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatNo() }}</td>
- <td>38</td>
- <td>{{CompatGeckoMobile("13.0")}}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>iOS 8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关连接"><strong>相关连接</strong></h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/index.html b/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/index.html
index 426f293f00..d5c1f3d3ff 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/index.html
@@ -18,8 +18,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
<p><strong><code>SharedArrayBuffer</code></strong> 对象用来表示一个通用的,固定长度的原始二进制数据缓冲区,类似于 {{jsxref("ArrayBuffer")}} 对象,它们都可以用来在共享内存(shared memory)上创建视图。与 <code>ArrayBuffer</code> 不同的是,<code><strong>SharedArrayBuffer</strong></code> 不能被分离。</p>
-<div class="blockIndicator note">
-<p>请注意,作为对<a href="https://meltdownattack.com/">Spectre</a>的响应,所有主流浏览器均默认于2018年1月5日禁用<code>SharedArrayBuffer</code>。 Chrome在启用了网站隔离功能的平台上的<a href="https://bugs.chromium.org/p/chromium/issues/detail?id=821270">v67中重新启用</a>了该功能,以防止出现Spectre风格的漏洞。</p>
+<div class="note">
+ <p><strong>备注:</strong>作为对<a href="https://meltdownattack.com/">Spectre</a>的响应,所有主流浏览器均默认于2018年1月5日禁用<code>SharedArrayBuffer</code>。 Chrome在启用了网站隔离功能的平台上的<a href="https://bugs.chromium.org/p/chromium/issues/detail?id=821270">v67中重新启用</a>了该功能,以防止出现Spectre风格的漏洞。</p>
</div>
<p>{{EmbedInteractiveExample("pages/js/sharedarraybuffer-constructor.html")}}</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html
index abbf9ae0b8..65ea0ae37f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html
@@ -78,57 +78,7 @@ for (var v of string) {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("36")}} [1]</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("36")}} [1]</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] From Gecko 17 (Firefox 17 / Thunderbird 17 / SeaMonkey 2.14) to Gecko 26 (Firefox 26 / Thunderbird 26 / SeaMonkey 2.23 / Firefox OS 1.2) the <code>iterator</code> property was used (<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=907077">bug 907077</a>), and from Gecko 27 to Gecko 35 the <code>"@@iterator"</code> placeholder was used. In Gecko 36 (Firefox 36 / Thunderbird 36 / SeaMonkey 2.33), the <code>@@iterator</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol">symbol</a> got implemented (<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=918828">bug 918828</a>).</p>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html
index 43ab947d68..25608cd5ee 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html
@@ -13,9 +13,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/anchor
<h2 id="概述">概述</h2>
-<div class="blockIndicator warning">
-<p>已废弃<br>
- 该特性已经从 Web 标准中删除,虽然一些浏览器目前仍然支持它,但也许会在未来的某个时间停止支持,请尽量不要使用该特性。</p>
+<div class="warning">
+<p><strong>警告:</strong>该特性已经从 Web 标准中删除,虽然一些浏览器目前仍然支持它,但也许会在未来的某个时间停止支持,请尽量不要使用该特性。</p>
</div>
<p><code><strong>anchor()</strong></code> 方法创建一个 {{HTMLElement("a")}} HTML 锚元素,被用作超文本靶标(hypertext target)。</p>
@@ -75,59 +74,7 @@ document.body.innerHTML = myString.anchor("contents_anchor");</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatGeckoDesktop("1.0") }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatGeckoMobile("1.0") }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h3 id="Gecko-specific_notes">Gecko-specific notes</h3>
-
-<p>从{{gecko("17")}}开始  <strong>"</strong> (引号) 被 HTML引用字符 <code>&amp;quot所替代</code>;在字符串中申请<code>命名参数</code>.</p>
+{{Compat}}
<h2 id="See_Also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html
index e45ae963c1..0d6104c911 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html
@@ -8,7 +8,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/big
<p><strong><code>big()</code></strong>方法的作用是创建一个使字符串显示大号字体的{{HTMLElement("big")}}标签。</p>
<div class="note">
-<p><strong>使用说明:</strong>  &lt;big&gt; 元素在<a href="/en-US/docs/Web/Guide/HTML/HTML5">HTML5</a>中已经被移除了,不应该再使用它。 取而代之的是web开发人员应该使用<a href="/en-US/docs/Web/CSS">CSS</a> 属性。</p>
+<p><strong>备注:</strong>  &lt;big&gt; 元素在<a href="/en-US/docs/Web/Guide/HTML/HTML5">HTML5</a>中已经被移除了,不应该再使用它。 取而代之的是web开发人员应该使用<a href="/en-US/docs/Web/CSS">CSS</a> 属性。</p>
</div>
<h2 id="语法">语法</h2>
@@ -65,55 +65,7 @@ console.log(worldString.fontsize(7)); // &lt;fontsize=7&gt;Hello, world&lt;/font
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html
index e423d8fbfd..a9767ac29a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html
@@ -60,55 +60,7 @@ console.log(worldString.strike()); // &lt;strike&gt;Hello, world&lt;/strike&gt;
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html
index 43d6f9d448..07ab6f5e5f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html
@@ -60,55 +60,7 @@ console.log(worldString.strike()); // &lt;strike&gt;Hello, world&lt;/strike&gt;
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关连接">相关连接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html
index 0e024365f2..bae0698030 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html
@@ -217,55 +217,7 @@ function getWholeCharAndI (str, i) {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/charcodeat/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/charcodeat/index.html
index ad5bd693df..149492f9d0 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/charcodeat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/charcodeat/index.html
@@ -39,8 +39,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/charCodeAt
<p>Unicode 码点(code points)的范围从 <code>0</code> 到 <code>1114111</code> <code>(0x10FFFF)</code>。开头的 128 个 Unicode 编码单元和 ASCII 字符编码一样。(关于 Unicode 的更多信息,可查看 <a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Values,_variables,_and_literals#Unicode">JavaScript Guide</a>。)</p>
-<div class="blockIndicator note">
-<p><strong>注意:</strong>,<code>charCodeAt</code> 总是返回一个小于 65,536 的值。这是因为高位编码单元(higher code point)使用一对(低位编码 lower valued)代理伪字符("surrogate" pseudo-characters)来表示,从而构成一个真正的字符。</p>
+<div class="note">
+<p><strong>备注:</strong>,<code>charCodeAt</code> 总是返回一个小于 65,536 的值。这是因为高位编码单元(higher code point)使用一对(低位编码 lower valued)代理伪字符("surrogate" pseudo-characters)来表示,从而构成一个真正的字符。</p>
<p>因此,为了检查(或重现)<code>65536</code> 及以上编码字符的完整字符,需要在获取 <code>charCodeAt(i)</code> 的值的同时获取 <code>charCodeAt(i+1)</code> 的值(如同用两个字母操纵一个字符串),或者改为获取 <code>codePointAt(i)</code> 的值。参看下面例 2 和例 3。</p>
</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html
index 9a204e9c4b..d5dc1ad036 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html
@@ -113,55 +113,7 @@ if (!String.prototype.codePointAt) {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatChrome("41")}}</td>
- <td>{{CompatGeckoDesktop("29")}}</td>
- <td>11</td>
- <td>{{CompatOpera("28")}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("29")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html
index 6fd1d90c0d..5b410acc42 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html
@@ -58,55 +58,7 @@ console.log(worldString.fixed()); // "&lt;tt&gt;Hello, world&lt;/tt&gt;"
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>版本</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>版本</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html
index 551cb5ffa0..05d9645258 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html
@@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/fontcolor
<p><strong><code>fontcolor()</code></strong>方法创建一个{{HTMLElement("font")}}的HTML元素让字符串被显示成指定的字体颜色。</p>
<div class="note">
-<p><strong>使用注意:</strong>&lt;font&gt;元素已经在在<a href="/en-US/docs/Web/Guide/HTML/HTML5">HTML5中</a>被移除并且不应该在使用。替代的是,web开发者应该使用<a href="/en-US/docs/Web/CSS">CSS</a>属性。</p>
+<p><strong>备注:</strong>&lt;font&gt;元素已经在在<a href="/en-US/docs/Web/Guide/HTML/HTML5">HTML5中</a>被移除并且不应该在使用。替代的是,web开发者应该使用<a href="/en-US/docs/Web/CSS">CSS</a>属性。</p>
</div>
<h2 id="语法">语法</h2>
@@ -32,9 +32,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/fontcolor
<h3 id="返回值">返回值</h3>
-<dl>
- <dd>一个包含一个{{HTMLElement("font")}} HTML元素的字符串。</dd>
-</dl>
+<p>一个包含一个{{HTMLElement("font")}} HTML元素的字符串。</p>
<h2 id="描述">描述</h2>
@@ -82,55 +80,7 @@ console.log(worldString.fontcolor('FF00') + ' is red in hexadecimal'
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox(Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic Support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile(Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic Support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="也可以看看">也可以看看</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html
index 005cfe0fb0..339b250b82 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html
@@ -8,7 +8,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/fontsize
<p>The <strong><code>fontsize()</code></strong> method creates a {{HTMLElement("font")}} HTML element that causes a string to be displayed in the specified font size.</p>
<div class="note">
-<p><strong>Usage note:</strong> The &lt;font&gt; element has been removed in <a href="/en-US/docs/Web/Guide/HTML/HTML5">HTML5</a> and shouldn't be used anymore. Instead web developers should use <a href="/en-US/docs/Web/CSS">CSS</a> properties.</p>
+<p><strong>备注:</strong> The &lt;font&gt; element has been removed in <a href="/en-US/docs/Web/Guide/HTML/HTML5">HTML5</a> and shouldn't be used anymore. Instead web developers should use <a href="/en-US/docs/Web/CSS">CSS</a> properties.</p>
</div>
<h2 id="语法">语法</h2>
@@ -72,55 +72,7 @@ console.log(worldString.fontsize(7)); // &lt;font size="7"&gt;Hello, world&lt;/f
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/fromcodepoint/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/fromcodepoint/index.html
index d7c6ad0ccd..5a8a4a6c14 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/fromcodepoint/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/fromcodepoint/index.html
@@ -20,13 +20,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/fromCodePoint
<dl>
<dt><code>num1, ..., num<em>N</em></code></dt>
<dd>一串 Unicode 编码位置,即“代码点”。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
-
- <p>使用指定的 Unicode 编码位置创建的字符串。</p>
- </dt>
</dl>
+<h3 id="返回值">返回值</h3>
+
+<p>使用指定的 Unicode 编码位置创建的字符串。</p>
+
<h3 id="异常">异常</h3>
<dl>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/includes/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/includes/index.html
index 6784bfb61f..97b7bf23aa 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/includes/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/includes/index.html
@@ -25,12 +25,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/includes
<dd>要在此字符串中搜索的字符串。</dd>
<dt><code><var>position</var></code> {{optional_inline}}</dt>
<dd>从当前字符串的哪个索引位置开始搜寻子字符串,默认值为 <code>0</code>。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
- </dt>
- <dd>如果当前字符串包含被搜寻的字符串,就返回 <strong><code>true</code></strong>;否则返回 <strong><code>false</code></strong>。</dd>
</dl>
+<h3 id="返回值">返回值</h3>
+<p>如果当前字符串包含被搜寻的字符串,就返回 <strong><code>true</code></strong>;否则返回 <strong><code>false</code></strong>。</p>
+
<h2 id="描述">描述</h2>
<p>这个方法可以帮你判断一个字符串是否包含另外一个字符串。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/index.html
index 8a6daf8511..26777dcf2e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/index.html
@@ -118,7 +118,7 @@ new String(thing)</pre>
</tbody>
</table>
-<div class="note">和其他语言不同,javascript 的字符串不区分单引号和双引号,所以不论是单引号还是双引号的字符串,上面的转义字符都能运行 。</div>
+<div class="note"><p><strong>备注:</strong>和其他语言不同,javascript 的字符串不区分单引号和双引号,所以不论是单引号还是双引号的字符串,上面的转义字符都能运行 。</p></div>
<h3 id="长字符串">长字符串</h3>
@@ -203,7 +203,9 @@ console.log(eval(s2)); // returns the string "2 + 2"
<pre class="brush: js">console.log(eval(s2.valueOf())); // returns the number 4
</pre>
-<div class="note"><strong>注意:</strong> 其他的将字符串对象转换成基本字符串的方法可以及参考 <a href="/zh-CN/docs/Web/JavaScript/Typed_arrays/StringView" title="/zh-CN/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code> – a C-like representation of strings based on typed arrays</a>.</div>
+<div class="note">
+<p><strong>备注:</strong> 其他的将字符串对象转换成基本字符串的方法可以及参考 <a href="/zh-CN/docs/Web/JavaScript/Typed_arrays/StringView" title="/zh-CN/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code> – a C-like representation of strings based on typed arrays</a>.</p>
+</div>
<h2 id="属性">属性</h2>
@@ -231,7 +233,7 @@ console.log(eval(s2)); // returns the string "2 + 2"
<h2 id="字符串泛型方法">字符串泛型方法</h2>
<div class="warning">
-<p>字符串泛型是<strong>非标准的</strong>,<strong>已弃用</strong>,<strong>并且会在不远的</strong><strong>将来删除</strong>。注意,你不能依靠他们的跨浏览器,而不使用下面提供的垫片。</p>
+<p><strong>警告:</strong>字符串泛型是<strong>非标准的</strong>,<strong>已弃用</strong>,<strong>并且会在不远的</strong><strong>将来删除</strong>。注意,你不能依靠他们的跨浏览器,而不使用下面提供的垫片。</p>
</div>
<p>应该避免在 Javascript 1.6 (Firefox 浏览器的 JS 引擎)中使用(虽然也支持)将其他对象转化为字符的方法,因为方法并没有成为 ECMA 标准:</p>
@@ -293,57 +295,7 @@ for (let i = 0, n = inputValues.length; i &lt; n; ++i) {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>0.2</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="sect1"></h2>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html
index b976a54b65..c12312dba9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html
@@ -18,7 +18,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/indexOf
-<div class="note"><strong>Note:</strong> For the Array method, see {{jsxref("Array.prototype.indexOf()")}}.</div>
+<div class="note">
+<p><strong>备注:</strong> For the Array method, see {{jsxref("Array.prototype.indexOf()")}}.</p>
+</div>
<h2 id="语法">语法</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html
index 91f574b4bf..d94a82229d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html
@@ -48,57 +48,9 @@ console.log(worldString.strike()); // <s>Hello, world</s></pre>
</tbody>
</table>
-<h2 id="Browser_compatibility">Browser compatibility</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">See also</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html
index 297d9f6d89..e963adf719 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html
@@ -20,11 +20,10 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/lastIndexOf
<dd>一个字符串,表示被查找的值。如果<code>searchValue</code>是空字符串,则返回<code>fromIndex</code>。</dd>
<dt><code>fromIndex</code>{{optional_inline}}</dt>
<dd>待匹配字符串searchValue的开头一位字符从 str的第fromIndex位开始向左回向查找。<code>fromIndex</code>默认值是 <code>+Infinity</code>。如果 <code>fromIndex &gt;= str.length</code> ,则会搜索整个字符串。如果 <code>fromIndex &lt; 0</code> ,则等同于 <code>fromIndex == 0</code>。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
- </dt>
</dl>
+<h3 id="返回值">返回值</h3>
+
<p>返回指定值最后一次出现的索引(该索引仍是以从左至右0开始记数的),如果没找到则返回-1。</p>
<h2 id="Description">描述</h2>
@@ -41,8 +40,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/lastIndexOf
'canal'.lastIndexOf('', 2); // returns 2</code>
</pre>
-<div class="blockIndicator note">
-<p>Note: <code>'abab'.lastIndexOf('ab', 2)</code> 将返回 2 而不是 0, 因为fromIndex只限制待匹配字符串的开头。</p>
+<div class="note">
+<p><strong>备注:</strong><code>'abab'.lastIndexOf('ab', 2)</code> 将返回 2 而不是 0, 因为fromIndex只限制待匹配字符串的开头。</p>
</div>
<p>(例如'abadefgabm'.lastIndexOf('ab', 7) 返回7,虽然查找的'ab'中的b已经在 index=8的位置了从index=7的a处向左查找仍是能找到自身a加上其后连成ab,因为fromIndex指的是待匹配字符串的开头那一个)</p>
@@ -101,55 +100,7 @@ console.log("The index of 'new' from the end is " + anyString.lastIndexOf("new")
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html
index afef2dd204..f75e5eabdb 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html
@@ -62,55 +62,7 @@ console.log("The empty string is has a length of " + empty.length);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html
index 57bd74a182..48e537cb96 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html
@@ -38,9 +38,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/match
<li><code>input</code>: 搜索的字符串.</li>
</ul>
-<dl>
- <dd>一个{{jsxref("Array")}},其内容取决于global(<code>g</code>)标志的存在与否,如果未找到匹配则为{{jsxref("null")}}。</dd>
-</dl>
+<p>一个{{jsxref("Array")}},其内容取决于global(<code>g</code>)标志的存在与否,如果未找到匹配则为{{jsxref("null")}}。</p>
<h2 id="Description">描述</h2>
@@ -60,7 +58,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/match
<p>在下例中,使用 <code>match</code> 查找 "<code>Chapter</code>" 紧跟着 1 个或多个数值字符,再紧跟着一个小数点和数值字符 0 次或多次。正则表达式包含 <code>i</code> 标志,因此大小写会被忽略。</p>
-<pre class="brush: js line-numbers language-js">var str = 'For more information, see Chapter 3.4.5.1';
+<pre class="brush: js">var str = 'For more information, see Chapter 3.4.5.1';
var re = /see (chapter \d+(\.\d)*)/i;
var found = str.match(re);
@@ -82,7 +80,7 @@ console.log(found);
<p>下例展示了 <code>match</code> 使用 global 和 ignore case 标志。A-E、a-e 的所有字母将会作为一个数组的元素返回。</p>
-<pre class="brush: js line-numbers language-js">var str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
+<pre class="brush: js">var str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
var regexp = /[A-E]/gi;
var matches_array = str.match(regexp);
@@ -91,7 +89,7 @@ console.log(matches_array);
<h3 id="使用match,不传参数"><code>使用match(),不传参数 </code></h3>
-<pre class="brush: js line-numbers language-js">var str = "Nothing will come of nothing.";
+<pre class="brush: js">var str = "Nothing will come of nothing.";
str.match(); // returns [""]</pre>
@@ -99,7 +97,7 @@ str.match(); // returns [""]</pre>
<p>当参数是一个字符串或一个数字,它会使用new RegExp(obj)来隐式转换成一个 {{jsxref("RegExp")}}。如果它是一个有正号的正数,RegExp() 方法将忽略正号。</p>
-<pre class="brush: js line-numbers language-js">var str1 = "NaN means not a number. Infinity contains -Infinity and +Infinity in JavaScript.",
+<pre class="brush: js">var str1 = "NaN means not a number. Infinity contains -Infinity and +Infinity in JavaScript.",
str2 = "My grandfather is 65 years old and My grandmother is 63 years old.",
str3 = "The contract was declared null and void.";
str1.match("number"); // "number" 是字符串。返回["number"]
@@ -145,64 +143,7 @@ str3.match(null); // 返回["null"]</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="Firefox_特殊注意">Firefox 特殊注意</h2>
-
-<ul>
- <li>从Gecko 27 {{geckoRelease(27)}}开始,此方法遵守ECMAScript 规范。当使用全局正则表达式调用 <code>match()时,</code>{{jsxref("RegExp.lastIndex")}} 属性(如果指定)会重置为 <code>0</code> ({{bug(501739)}})。</li>
- <li>从 Gecko 39 {{geckoRelease(39)}}开始,不赞成使用非标准的标志参数,并抛出一个控制台警告({{bug(1142351)}})。</li>
- <li>从 Gecko 47 {{geckoRelease(47)}} 开始 , non-release builds不再支持非标准的标志参数,并且将完全移除({{bug(1245801)}})。</li>
- <li>从 Gecko 49 {{geckoRelease(49)}} 开始 , 不再支持非标准的标志参数 ({{bug(1108382)}}).</li>
-</ul>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/matchall/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/matchall/index.html
index d11d23265e..662d4ff564 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/matchall/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/matchall/index.html
@@ -24,9 +24,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/matchAll
<h3 id="参数">参数</h3>
-<dl>
- <dt><code>regexp</code></dt>
-</dl>
+<p>regexp</p>
<p>    正则表达式对象。如果所传参数不是一个正则表达式对象,则会隐式地使用 <code>new RegExp(obj)</code> 将其转换为一个 <a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/RegExp" title="此页面仍未被本地化, 期待您的翻译!"><code>RegExp</code></a> 。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/padstart/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/padstart/index.html
index c358da2585..1d1a9c1176 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/padstart/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/padstart/index.html
@@ -35,7 +35,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/padStart
<h2 id="示例">示例</h2>
-<pre class="brush: js line-numbers language-js">'abc'.padStart(10); // " abc"
+<pre class="brush: js">'abc'.padStart(10); // " abc"
'abc'.padStart(10, "foo"); // "foofoofabc"
'abc'.padStart(6,"123465"); // "123abc"
'abc'.padStart(8, "0"); // "00000abc"
@@ -45,7 +45,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/padStart
<p>如果原生环境不支持该方法,在其他代码之前先运行下面的代码,将创建 <code>String.prototype.padStart()</code> 方法。</p>
-<pre class="brush: js line-numbers language-js">// https://github.com/uxitten/polyfill/blob/master/string.polyfill.js
+<pre class="brush: js">// https://github.com/uxitten/polyfill/blob/master/string.polyfill.js
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart
if (!String.prototype.padStart) {
String.prototype.padStart = function padStart(targetLength,padString) {
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/repeat/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/repeat/index.html
index 45ea5be584..c63c2144f4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/repeat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/repeat/index.html
@@ -44,7 +44,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/repeat
<p>此方法已添加到 ECMAScript 2015 规范中,并且可能尚未在所有 JavaScript 实现中可用。然而,你可以使用以下代码段对 String.prototype.repeat() 进行填充:</p>
-<pre class="brush: js language-js">if (!String.prototype.repeat) {
+<pre class="brush: js">if (!String.prototype.repeat) {
String.prototype.repeat = function(count) {
'use strict';
if (this == null) {
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/replace/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/replace/index.html
index 3bc425e928..66226c970e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/replace/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/replace/index.html
@@ -53,8 +53,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replace
<table class="fullwidth-table">
<tbody>
<tr>
- <td class="header">变量名</td>
- <td class="header">代表的值</td>
+ <th>变量名</th>
+ <th>代表的值</th>
</tr>
<tr>
<td><code>$$</code></td>
@@ -94,8 +94,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replace
<table class="fullwidth-table">
<tbody>
<tr>
- <td class="header">变量名</td>
- <td class="header">代表的值</td>
+ <th>变量名</th>
+ <th>代表的值</th>
</tr>
<tr>
<td><code>match</code></td>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/replaceall/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/replaceall/index.html
index c9d892e3f7..726bfe2530 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/replaceall/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/replaceall/index.html
@@ -21,8 +21,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replaceAll
<pre class="syntaxbox">const newStr = <var>str</var>.replaceAll(<var>regexp</var>|<var>substr</var>, <var>newSubstr</var>|<var>function</var>)</pre>
-<div class="blockIndicator note">
-<p>当使用一个 `regex`时,您必须设置全局(“ g”)标志,<br>
+<div class="note">
+<p><strong>备注:</strong>当使用一个 `regex`时,您必须设置全局(“ g”)标志,<br>
否则,它将引发 <code>TypeError</code>:“必须使用全局 RegExp 调用 replaceAll”。</p>
</div>
@@ -54,8 +54,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replaceAll
<table class="standard-table">
<thead>
<tr>
- <th class="header" scope="col">Pattern</th>
- <th class="header" scope="col">Inserts</th>
+ <th scope="col">Pattern</th>
+ <th scope="col">Inserts</th>
</tr>
</thead>
<tbody>
@@ -93,8 +93,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replaceAll
<table class="standard-table">
<thead>
<tr>
- <th class="header" scope="col">Possible name</th>
- <th class="header" scope="col">Supplied value</th>
+ <th scope="col">Possible name</th>
+ <th scope="col">Supplied value</th>
</tr>
</thead>
<tbody>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html
index 834ceed5ac..72b59b6142 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html
@@ -61,55 +61,7 @@ console.log(worldString.fontsize(7)); // &lt;font size="7"&gt;Hello, world&lt;/f
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/split/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/split/index.html
index 75ba2c0748..e6eb4945f6 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/split/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/split/index.html
@@ -23,8 +23,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/split
<pre class="syntaxbox"><code><em>str.split([separator[, limit]])</em></code>
</pre>
-<div class="blockIndicator warning">
-<p>注意:如果使用空字符串(“)作为分隔符,则字符串不是在每个用户感知的字符(图形素集群)之间,也不是在每个Unicode字符(代码点)之间,而是在每个UTF-16代码单元之间。这会摧毁代理对。还请参见<a href="https://stackoverflow.com/questions/4547609/how-do-you-get-a-string-to-a-character-array-in-javascript/34717402#34717402">how do you get a string to a character array in javascript</a></p>
+<div class="warning">
+<p><strong>警告:</strong>如果使用空字符串(“)作为分隔符,则字符串不是在每个用户感知的字符(图形素集群)之间,也不是在每个Unicode字符(代码点)之间,而是在每个UTF-16代码单元之间。这会摧毁代理对。还请参见<a href="https://stackoverflow.com/questions/4547609/how-do-you-get-a-string-to-a-character-array-in-javascript/34717402#34717402">how do you get a string to a character array in javascript</a></p>
</div>
<h3 id="参数">参数</h3>
@@ -155,8 +155,8 @@ console.log(splits); //["c", "c,", "c", "c", "c"]</code></pre>
<h3 id="用split来颠倒字符串顺序">用split()来颠倒字符串顺序</h3>
-<div class="blockIndicator warning">
-<p>注意这并非一种很健壮的逆转字符串的方法:</p>
+<div class="warning">
+<p><strong>警告:</strong>注意这并非一种很健壮的逆转字符串的方法:</p>
<pre><code>const str = 'asdfghjkl';
const strReverse = str.split('').reverse().join(''); // 'lkjhgfdsa'
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html
index 12304c18cf..3bea6eba71 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html
@@ -57,55 +57,7 @@ console.log(worldString.strike()); // &lt;strike&gt;Hello, world&lt;/strike&gt;
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html
index 69402cb285..6662e050e4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html
@@ -62,55 +62,7 @@ console.log('This is what a ' + subText.sub() + ' looks like.');
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html
index 5c94a75240..4916b09abe 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html
@@ -7,7 +7,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/substr
---
<p>{{JSRef}}</p>
-<div class="warning">警告: 尽管 <code>String.prototype.substr(…)</code> 没有严格被废弃 (as in "removed from the Web standards"), 但它被认作是遗留的函数并且可以的话应该避免使用。它并非JavaScript核心语言的一部分,未来将可能会被移除掉。如果可以的话,使用 <code><a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/substring">substring()</a></code> 替代它.</div>
+<div class="warning"><p><strong>警告:</strong>尽管 <code>String.prototype.substr(…)</code> 没有严格被废弃 (as in "removed from the Web standards"), 但它被认作是遗留的函数并且可以的话应该避免使用。它并非JavaScript核心语言的一部分,未来将可能会被移除掉。如果可以的话,使用 <code><a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/substring">substring()</a></code> 替代它.</p></div>
<p><code><strong>substr()</strong></code> 方法返回一个字符串中从指定位置开始到指定字符数的字符。</p>
@@ -103,57 +103,7 @@ if ('ab'.substr(-1) != 'b')
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p><strong>Note</strong>: Up to version 3.6, Firefox had a bug which caused <code>substr</code> to return empty result when an explicit <code>undefined</code> value was passed in as the <code>length</code>.</p>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html
index 6aef7ea138..bf4162a1c3 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html
@@ -136,55 +136,7 @@ replaceString("World", "Web", "Brave New World");</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html
index 15616dfc08..0027d16fd0 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html
@@ -61,55 +61,7 @@ console.log('This is what a ' + subText.sub() + ' looks like.');
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html
index c4f1025029..e3675a0195 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html
@@ -86,55 +86,7 @@ let locales = ['tr', 'TR', 'tr-TR', 'tr-u-co-search', 'tr-x-turkish'];
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="参阅">参阅</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html
index e8fd231457..f492176f46 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html
@@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toLowerCase
<h2 id="语法">语法</h2>
-<pre class="syntaxbox language-html">str.toLowerCase()
+<pre class="brush: js">str.toLowerCase()
</pre>
<h3 id="返回值">返回值</h3>
@@ -36,8 +36,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toLowerCase
​console.log( "ALPHABET".toLowerCase() );
// "alphabet"</pre>
-<div class="line-number"></div>
-
<p><strong>说明</strong></p>
@@ -75,55 +73,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toLowerCase
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html
index 756758d877..1b6c4f7a85 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html
@@ -32,57 +32,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toSource
<p>不属于任何标准. 在 JavaScript 1.3实现了.</p>
-<h2 id="浏览器适配">浏览器适配</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="参见">参见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html
index ff09cb22b0..98d7890b15 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html
@@ -66,55 +66,7 @@ alert(x.toString()) // 输出 "Hello world"</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/trimend/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/trimend/index.html
index 1edf0d9200..59e70e782b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/trimend/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/trimend/index.html
@@ -43,7 +43,7 @@ original_slug: Web/JavaScript/Reference/Global_Objects/String/TrimRight
<p>下面的例子输出了小写的字符串"   foo":</p>
-<pre class="brush:js;highlight:[5]">var str = " foo ";
+<pre class="brush:js">var str = " foo ";
alert(str.length); // 8
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/trimstart/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/trimstart/index.html
index 48718fcb13..655126befb 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/trimstart/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/trimstart/index.html
@@ -45,7 +45,7 @@ original_slug: Web/JavaScript/Reference/Global_Objects/String/TrimLeft
<p>下面的例子输出了小写的字符串 <code>"foo  "</code>:</p>
-<pre class="brush:js;highlight:[5]">var str = " foo ";
+<pre class="brush:js">var str = " foo ";
console.log(str.length); // 8
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/for/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/for/index.html
index 2b5df3a89c..ebb9e724e9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/for/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/for/index.html
@@ -97,55 +97,7 @@ Symbol.for("mdn.bar");
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatChrome(40) }}</td>
- <td>{{ CompatGeckoDesktop("36.0") }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatGeckoMobile("36.0") }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_Also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/index.html
index a0165478d4..2448eb3d7f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/index.html
@@ -77,13 +77,13 @@ typeof symObj; // "object"</pre>
<dl>
<dt>
- <h4 id="迭代_symbols">迭代 symbols {{jsxref("Symbol.iterator")}}</h4>
+ 迭代 symbols {{jsxref("Symbol.iterator")}}
</dt>
<dd>一个返回一个对象默认迭代器的方法。被 <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of">for...of</a></code> 使用。</dd>
<dt>{{jsxref("Symbol.asyncIterator")}} {{experimental_inline}}</dt>
<dd>一个返回对象默认的异步迭代器的方法。被 <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of">for await of</a></code> 使用。</dd>
<dt>
- <h4 id="正则表达式_symbols">正则表达式 symbols {{jsxref("Symbol.match")}}</h4>
+ 正则表达式 symbols {{jsxref("Symbol.match")}}
</dt>
<dd>一个用于对字符串进行匹配的方法,也用于确定一个对象是否可以作为正则表达式使用。被 {{jsxref("String.prototype.match()")}} 使用。</dd>
<dt>{{jsxref("Symbol.replace")}}</dt>
@@ -93,7 +93,7 @@ typeof symObj; // "object"</pre>
<dt>{{jsxref("Symbol.split")}}</dt>
<dd>一个在匹配正则表达式的索引处拆分一个字符串的方法.。被 {{jsxref("String.prototype.split()")}} 使用。</dd>
<dt>
- <h4 id="其他_symbols">其他 symbols {{jsxref("Symbol.hasInstance")}}</h4>
+ 其他 symbols {{jsxref("Symbol.hasInstance")}}
</dt>
<dd>一个确定一个构造器对象识别的对象是否为它的实例的方法。被 {{jsxref("Operators/instanceof", "instanceof")}} 使用。</dd>
<dt>{{jsxref("Symbol.isConcatSpreadable")}}</dt>
@@ -167,7 +167,7 @@ typeof Symbol.iterator === 'symbol'
<p>Symbols 在 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in"><code>for...in</code></a> 迭代中不可枚举。另外,{{jsxref("Object.getOwnPropertyNames()")}} 不会返回 symbol 对象的属性,但是你能使用 {{jsxref("Object.getOwnPropertySymbols()")}} 得到它们。</p>
-<pre class="brush: js line-numbers language-js">var obj = {};
+<pre class="brush: js">var obj = {};
obj[Symbol("a")] = "a";
obj[Symbol.for("b")] = "b";
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/keyfor/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/keyfor/index.html
index 9877b68ce0..76daeafd72 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/keyfor/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/keyfor/index.html
@@ -22,9 +22,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/keyFor
<h3 id="返回值">返回值</h3>
-<dl>
- <dd>如果全局注册表中查找到该symbol,则返回该symbol的key值,返回值为字符串类型。否则返回undefined</dd>
-</dl>
+<p>如果全局注册表中查找到该symbol,则返回该symbol的key值,返回值为字符串类型。否则返回undefined</p>
<h2 id="示例">示例</h2>
@@ -58,55 +56,7 @@ Symbol.keyFor(Symbol.iterator) // undefined
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatGeckoDesktop("33.0") }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatGeckoMobile("33.0") }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_Also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html
index 7f3ac000d6..f37ad018db 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html
@@ -53,55 +53,7 @@ console.log('foobar'.search(new caseInsensitiveSearch('BaR')));
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatChrome(50)}}</td>
- <td>{{ CompatGeckoDesktop(49) }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatGeckoMobile(49) }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="参见">参见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/split/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/split/index.html
index 220716da29..ce514451d9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/split/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/split/index.html
@@ -55,55 +55,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/split
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(50)}}</td>
- <td>{{ CompatGeckoDesktop(49) }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatGeckoMobile(49) }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="参阅">参阅</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html
index bbf27b98d6..18c1c5a6e9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html
@@ -68,14 +68,7 @@ console.log(obj2 + ""); // "true" -- hint 参数值是 "default"
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p> {{Compat("javascript.builtins.Symbol.toPrimitive")}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="其他资料">其他资料</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/tosource/index.html
index 6342361cc9..87d28009f3 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/tosource/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/tosource/index.html
@@ -34,57 +34,9 @@ sym.toSource()</pre>
<p>还未成为任何标准的一部分</p>
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatGeckoDesktop("36.0") }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatGeckoMobile("36.0") }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+{{Compat}}
<h2 id="See_also">See also</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html
index d59863f878..88ae116c0f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html
@@ -59,55 +59,7 @@ Symbol.for("foo").toString() // "Symbol(foo)"
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatGeckoDesktop("33.0") }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatGeckoMobile("33.0") }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_Also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/tostringtag/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/tostringtag/index.html
index 82f699b536..27f3bf4402 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/tostringtag/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/tostringtag/index.html
@@ -72,55 +72,7 @@ Object.prototype.toString.call(new ValidatorClass()); // "[object Validator]"
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(49)}}</td>
- <td>{{CompatGeckoDesktop(51)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile(51)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/valueof/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/valueof/index.html
index c9e9c55adb..e4a00990ca 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/valueof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/valueof/index.html
@@ -49,55 +49,7 @@ Object(Symbol("foo")).toString() + "bar";
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatGeckoDesktop("33.0") }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatGeckoMobile("33.0") }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_Also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/syntaxerror/index.html b/files/zh-cn/web/javascript/reference/global_objects/syntaxerror/index.html
index 6c75432980..2171da8054 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/syntaxerror/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/syntaxerror/index.html
@@ -113,55 +113,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/SyntaxError
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@iterator/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@iterator/index.html
index 3704f46a52..eb8c8b2c1a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@iterator/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@iterator/index.html
@@ -62,55 +62,7 @@ console.log(eArr.next().value); // 50
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown }}</td>
- <td>{{ CompatGeckoDesktop("36") }} [1]</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatVersionUnknown }}</td>
- <td>{{ CompatGeckoMobile("36") }} [1]</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<p>[1] 从 Gecko 17 (Firefox 17 / Thunderbird 17 / SeaMonkey 2.14) 到 Gecko 26 (Firefox 26 / Thunderbird 26 / SeaMonkey 2.23 / Firefox OS 1.2) 使用 <code>iterator</code> 属性 (<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=907077">bug 907077</a>),从 Gecko 27 到 Gecko 35 使用<code>"@@iterator"</code> 占位符。 在 Gecko 36 (Firefox 36 / Thunderbird 36 / SeaMonkey 2.33)中,<code>@@iterator</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol">Symbol</a> 予以实现(<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=918828">bug 918828</a>)。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@species/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@species/index.html
index b4766bd8f3..181102baae 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@species/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@species/index.html
@@ -68,55 +68,7 @@ Float32Array[Symbol.species]; // function Float32Array()
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("48")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("48")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/buffer/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/buffer/index.html
index 93ffe360f2..e59f0d2a71 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/buffer/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/buffer/index.html
@@ -48,55 +48,7 @@ uint16.buffer; // ArrayBuffer { byteLength: 8 }
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>7.0</td>
- <td>{{ CompatGeckoDesktop("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoMobile("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytelength/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytelength/index.html
index 8de0fa848f..50805ed8c1 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytelength/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytelength/index.html
@@ -55,55 +55,7 @@ uint8.byteLength; // 6 (根据被构造的 Uint8Array 的 offset)
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>7.0</td>
- <td>{{ CompatGeckoDesktop("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("2")}}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/byteoffset/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/byteoffset/index.html
index 4c99e61454..9561697042 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/byteoffset/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/byteoffset/index.html
@@ -52,55 +52,7 @@ uint8.byteOffset; // 3 (在构造 Uint8Array 时指定)
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>7.0</td>
- <td>{{ CompatGeckoDesktop("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoMobile("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytes_per_element/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytes_per_element/index.html
index ce51212c7a..de2a646149 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytes_per_element/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytes_per_element/index.html
@@ -55,57 +55,7 @@ Float64Array.BYTES_PER_ELEMENT; // 8</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>功能</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>7.0</td>
- <td>{{ CompatGeckoDesktop("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>功能</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>4.0</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatGeckoMobile("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="sect1"> </h2>
+{{Compat}}
<h2 id="参见">参见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/copywithin/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/copywithin/index.html
index ed9dd53aab..d15c54bd61 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/copywithin/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/copywithin/index.html
@@ -69,57 +69,7 @@ console.log(uint8); // Uint8Array [ 1, 2, 3, 1, 2, 3, 0, 0 ]
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(45.0)}}</td>
- <td>{{CompatGeckoDesktop("34")}}</td>
- <td>{{CompatNo}}</td>
- <td>
- <p> {{CompatOpera(36.0)}}</p>
- </td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("34")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/entries/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/entries/index.html
index 606e75883c..e9e9244dc0 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/entries/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/entries/index.html
@@ -63,55 +63,7 @@ console.log(eArr.next().value); // [4, 50]
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(45.0)}}</td>
- <td>{{CompatGeckoDesktop(37)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOpera(36.0)}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatVersionUnknown }}</td>
- <td>{{CompatGeckoMobile(37)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/every/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/every/index.html
index f38c199989..073c3d49a4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/every/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/every/index.html
@@ -49,7 +49,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/every
<p>下面的示例测试了类型化数组所有元素是否大于 10。</p>
-<pre class="brush: js language-js">function isBigEnough(element, index, array) {
+<pre class="brush: js">function isBigEnough(element, index, array) {
return element &gt;= 10;
}
new Uint8Array([12, 5, 8, 130, 44]).every(isBigEnough); // false
@@ -86,55 +86,7 @@ new Uint8Array([12, 54, 18, 130, 44]).every(elem =&gt; elem &gt;= 10); // true</
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(45.0)}}</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOpera(36.0)}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/fill/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/fill/index.html
index ab7506d843..4aa5a96487 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/fill/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/fill/index.html
@@ -77,55 +77,7 @@ if (!Uint8Array.prototype.fill) {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>45</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>32</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关">相关</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/filter/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/filter/index.html
index c5d87874b3..1685bdb678 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/filter/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/filter/index.html
@@ -86,55 +86,7 @@ new Uint8Array([12, 5, 8, 130, 44]).filter(isBigEnough);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("45")}}</td>
- <td>{{CompatGeckoDesktop("38")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("38")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/find/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/find/index.html
index 8482375404..409455ce73 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/find/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/find/index.html
@@ -90,55 +90,7 @@ console.log(uint8.find(isPrime)); // 5</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("37.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("37.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/findindex/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/findindex/index.html
index 938419d229..adc1ec6cbf 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/findindex/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/findindex/index.html
@@ -130,55 +130,7 @@ console.log(uint16.findIndex(isPrime)); // 2
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("37.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("37.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/foreach/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/foreach/index.html
index b88d1af965..5d6e3ed39d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/foreach/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/foreach/index.html
@@ -93,13 +93,7 @@ new Uint8Array([0, 1, 2, 3]).forEach(logArrayElements);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-
-
-<p>{{Compat("javascript.builtins.TypedArray.forEach")}}</p>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/from/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/from/index.html
index 20bdbf8b7f..6e480125ab 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/from/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/from/index.html
@@ -8,7 +8,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/from
---
<div>{{JSRef}}</div>
-<p><code><strong><em>TypedArray</em>.from()</strong></code> 方法 从一个类数组或者可迭代对象中创建一个新<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">类型数组</a>。 这个方法和 {{jsxref("Array.from()")}} 类似。</p>
+<p><code>TypedArray.from()</code> 方法 从一个类数组或者可迭代对象中创建一个新<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">类型数组</a>。 这个方法和 {{jsxref("Array.from()")}} 类似。</p>
<h2 id="语法">语法</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/includes/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/includes/index.html
index efa225622f..44610ac2c2 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/includes/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/includes/index.html
@@ -61,57 +61,7 @@ new Float64Array([NaN]).includes(NaN); // true;
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Edge</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>47</td>
- <td>43</td>
- <td>14</td>
- <td>{{CompatNo}}</td>
- <td>34</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>47</td>
- <td>43</td>
- <td>{{CompatNo}}</td>
- <td>34</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/indexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/indexof/index.html
index 24d78f6487..6c99a285b4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/indexof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/indexof/index.html
@@ -65,57 +65,7 @@ uint8.indexOf(2, -3); // 0
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("45")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome("32")}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="兼容性注解">兼容性注解</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/join/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/join/index.html
index 3d41de4353..f23465e341 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/join/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/join/index.html
@@ -68,57 +68,7 @@ if (!Uint8Array.prototype.join) {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/keys/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/keys/index.html
index 4b10667f83..cd35ea4882 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/keys/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/keys/index.html
@@ -63,57 +63,7 @@ console.log(eArr.next().value); // 4
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop(37)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile(37)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/lastindexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/lastindexof/index.html
index 16be84ff24..0b93a012c2 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/lastindexof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/lastindexof/index.html
@@ -63,57 +63,7 @@ uint8.lastIndexOf(2, -1); // 3
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="兼容性注解">兼容性注解</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/length/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/length/index.html
index 797f2ea5cb..ae62853450 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/length/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/length/index.html
@@ -55,55 +55,7 @@ uint8.length; // 6 (根据被构造的 Uint8Array 的 offset)
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>7.0</td>
- <td>{{CompatGeckoDesktop("2")}}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("2")}}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/map/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/map/index.html
index 959930fbda..644720ff35 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/map/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/map/index.html
@@ -93,55 +93,7 @@ var doubles = numbers.map(function(num) {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("38")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("38")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/name/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/name/index.html
index cfe0be7792..e9572fa1af 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/name/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/name/index.html
@@ -11,7 +11,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/name
---
<div>{{JSRef}}</div>
-<p><code><strong><em>TypedArray</em>.name</strong></code> ?属性是描述类型数组构造名的字符串值。</p>
+<p><code>TypedArray.name</code> ?属性是描述类型数组构造名的字符串值。</p>
<div>{{js_property_attributes(0,0,0)}}</div>
@@ -57,57 +57,9 @@ Float64Array.name; // "Float64Array"</pre>
</tbody>
</table>
-<h2 id="浏览器兼容">?浏览器兼容</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>?特性</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>?基础支持</td>
- <td>7.0</td>
- <td>{{ CompatGeckoDesktop("2") }}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("2")}}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="参见">参见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/of/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/of/index.html
index 831a2a0b84..235c64ade4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/of/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/of/index.html
@@ -10,7 +10,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/of
---
<div>{{JSRef}}</div>
-<p><code><strong><em>TypedArray</em>.of()</strong></code> 方法创建一个具有可变数量参数的新<a href="/en-US/docs/">类型数组</a> 。此方法几乎与{{jsxref("Array.of()")}} 相同。</p>
+<p><code>TypedArray.of()</code> 方法创建一个具有可变数量参数的新<a href="/en-US/docs/">类型数组</a> 。此方法几乎与{{jsxref("Array.of()")}} 相同。</p>
<h2 id="句法">句法</h2>
@@ -80,55 +80,7 @@ Int16Array.of(undefined); // IntArray [ 0 ]
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(45.0)}}</td>
- <td>{{CompatGeckoDesktop("38")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("38")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="也可以看看">也可以看看</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduce/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduce/index.html
index 929e05ba86..7f78fcc652 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduce/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduce/index.html
@@ -77,57 +77,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/reduce
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("47")}}</td>
- <td>12</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera("32")}}</td>
- <td>{{CompatSafari("10")}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("37")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduceright/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduceright/index.html
index 172c9706f7..c1e610466c 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduceright/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduceright/index.html
@@ -84,57 +84,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("45")}}</td>
- <td>12</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOpera("32")}}</td>
- <td>{{CompatSafari("10")}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("37")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reverse/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reverse/index.html
index 9011f29dac..c9657489ee 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reverse/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reverse/index.html
@@ -47,57 +47,7 @@ console.log(uint8); // Uint8Array [3, 2, 1]
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("45")}}</td>
- <td>12</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOpera("32")}}</td>
- <td>{{CompatSafari("10")}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("37")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/set/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/set/index.html
index bced96b90f..b8918fa5bb 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/set/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/set/index.html
@@ -71,55 +71,7 @@ console.log(uint8); // Uint8Array [ 0, 0, 0, 1, 2, 3, 0, 0 ]
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>浏览器</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>最低版本</td>
- <td>7.0</td>
- <td>{{CompatGeckoDesktop("2")}}</td>
- <td>10</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>浏览器</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>最低版本</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("2")}}</td>
- <td>10</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/some/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/some/index.html
index 4c285a5fe1..28bb353173 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/some/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/some/index.html
@@ -55,7 +55,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/some
<p>以下示例测试typed array中的所有元素都大于10.</p>
-<pre class="brush: js language-js">function isBiggerThan10(element, index, array) {
+<pre class="brush: js">function isBiggerThan10(element, index, array) {
return element &gt; 10;
}
new Uint8Array([2, 5, 8, 1, 4]).some(isBiggerThan10); // false
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/sort/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/sort/index.html
index 14bb6c17dc..68b221ec1d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/sort/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/sort/index.html
@@ -69,55 +69,7 @@ numbers.sort(compareNumbers);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop(46)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile(46)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/tostring/index.html
index b5417f1a27..eeb8296eb7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/tostring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/tostring/index.html
@@ -57,55 +57,7 @@ numbers.toString(); // "[object Uint8Array]"
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop(51)}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile(51)}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/values/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/values/index.html
index 3b88e98f0b..1137bf72a7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/values/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/values/index.html
@@ -63,57 +63,7 @@ console.log(eArr.next().value); // 50
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown }}</td>
- <td>12</td>
- <td>{{CompatGeckoDesktop(37)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOpera("26")}}</td>
- <td>{{CompatSafari("10")}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatVersionUnknown }}</td>
- <td>{{CompatGeckoMobile(37)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="另见">另见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/uint8clampedarray/index.html b/files/zh-cn/web/javascript/reference/global_objects/uint8clampedarray/index.html
index f1fe65cc75..0863a75053 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/uint8clampedarray/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/uint8clampedarray/index.html
@@ -177,89 +177,7 @@ var uintc8 = new Uint8ClampedArray(iterable);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>7.0</td>
- <td>{{ CompatGeckoDesktop(2) }}</td>
- <td>11 (as of <a href="https://support.microsoft.com/en-us/kb/2929437">KB2929437</a>)</td>
- <td>11.6</td>
- <td>5.1</td>
- </tr>
- <tr>
- <td>需要使用 <code>new</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoDesktop(44) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>构造函数中可枚举</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoDesktop(52) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoMobile(2) }}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>11.6</td>
- <td>4.2</td>
- </tr>
- <tr>
- <td>需要使用 <code>new</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoMobile(44) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>构造函数中可枚举</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoMobile(52) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="兼容性注意事项">兼容性注意事项</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/undefined/index.html b/files/zh-cn/web/javascript/reference/global_objects/undefined/index.html
index e440e136f6..9e2241c565 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/undefined/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/undefined/index.html
@@ -43,7 +43,7 @@ test(); // 返回"undefined"</pre>
<p>一个函数如果没有使用return语句指定{{jsxref("Statements/return", "返回")}}值,就会返回一个undefined值。</p>
<div class="warning">
-<p>但是它有可能在非全局作用域中被当作{{Glossary("Identifier", "标识符")}}(变量名)来使用(因为undefined不是一个{{jsxref("Reserved_Words", "保留字")}})),这样做是一个非常坏的主意,因为这样会使你的代码难以去维护和排错。</p>
+<p><strong>警告:</strong>但是它有可能在非全局作用域中被当作{{Glossary("Identifier", "标识符")}}(变量名)来使用(因为undefined不是一个{{jsxref("Reserved_Words", "保留字")}})),这样做是一个非常坏的主意,因为这样会使你的代码难以去维护和排错。</p>
<pre class="brush: js">// 不要这样做!
@@ -76,7 +76,7 @@ if (x === undefined) {
}</pre>
<div class="note">
-<p>注意:这里是必须使用严格相等操作符(===)而不是标准相等操作符(==),因为 x == undefined 会检查x是不是null,但是严格相等不会检查(有点饶人,其实 === 会严格判断双方的类型、值等是否相等)。null不等同于undefined。移步{{jsxref("Operators/Comparison_Operators", "比较操作符")}}查看详情。</p>
+<p><strong>备注:</strong>这里是必须使用严格相等操作符(===)而不是标准相等操作符(==),因为 x == undefined 会检查x是不是null,但是严格相等不会检查(有点饶人,其实 === 会严格判断双方的类型、值等是否相等)。null不等同于undefined。移步{{jsxref("Operators/Comparison_Operators", "比较操作符")}}查看详情。</p>
</div>
<h3 id="Typeof_操作符和undefined">Typeof 操作符和undefined</h3>
@@ -101,7 +101,7 @@ if(y === undefined) { // ReferenceError: y is not defined
<p>但是,技术方面看来这样的使用方法应该被避免。JavaScript是一个静态作用域语言,所以,一个变量是否被声明可以通过看它是否在一个封闭的上下文中被声明。唯一的例外是全局作用域,但是全局作用域是被绑定在全局对象上的,所以要检查一个变量是否在全局上下文中存在可以通过检查全局对象上是否存在这个属性(比如使用{{jsxref("Operators/in", "in")}}操作符)。</p>
-<pre class="brush: js line-numbers language-js">if ('x' in window) {
+<pre class="brush: js">if ('x' in window) {
// 只有x被全局性的定义 才会这行这些语句
}</pre>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/unescape/index.html b/files/zh-cn/web/javascript/reference/global_objects/unescape/index.html
index 85746f1bc3..36699ebc8f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/unescape/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/unescape/index.html
@@ -9,7 +9,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/unescape
<p>已废弃的<code><strong>unescape()</strong></code> 方法计算生成一个新的字符串,其中的十六进制转义序列将被其表示的字符替换。上述的转义序列就像{{jsxref("escape")}}里介绍的一样。因为 <code>unescape</code> 已经废弃,建议使用 {{jsxref("decodeURI")}}或者{{jsxref("decodeURIComponent")}} 替代本方法。</p>
-<div class="note"><strong>注意:</strong>不要使用<code>unescape</code>去解码URLS,使用<code>decodeURI</code>或<code>decodeURIComponent</code>替代。</div>
+<div class="note">
+<p><strong>备注:</strong>不要使用<code>unescape</code>去解码URLS,使用<code>decodeURI</code>或<code>decodeURIComponent</code>替代。</p>
+</div>
<h2 id="语法">语法</h2>
@@ -20,12 +22,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/unescape
<dl>
<dt><code>str</code></dt>
<dd>被编码过的字符串。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
- </dt>
- <dd>一个未被转义的新字符串。</dd>
</dl>
+<h3 id="返回值">返回值</h3>
+
+<p>一个未被转义的新字符串。</p>
+
<h2 id="描述">描述</h2>
<p><code>unescape</code>函数是<em>全局对象</em>的一个属性。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/uneval/index.html b/files/zh-cn/web/javascript/reference/global_objects/uneval/index.html
index 234b683d48..f0a0119d4d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/uneval/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/uneval/index.html
@@ -22,11 +22,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/uneval
<h3 id="返回值">返回值</h3>
-<dl>
- <dd>表示给定对象的源代码的字符串</dd>
-</dl>
+<p>表示给定对象的源代码的字符串</p>
-<div class="note"><strong>注意:</strong>无法通过此方法获取对象的 JSON 形式。</div>
+<div class="note">
+<p><strong>备注:</strong>无法通过此方法获取对象的 JSON 形式。</p>
+</div>
<h2 id="描述">描述</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html
index 5340ac3ee0..5344e4f3a6 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html
@@ -13,9 +13,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakMap/clear
<p><code><strong>clear()</strong></code>用来从 <code>WeakMap对象中移除所有元素。</code>但不再是ECMAScript和它的实现部分。</p>
<div class="warning">
-<p>Warning:</p>
+<p><strong>警告:</strong>Warning:</p>
-<p><img alt="WeakMap(no clear() any more).png" src="https://mdn.mozillademos.org/files/15608/WeakMap(no%20clear()%20any%20more).png" style="height: 490px; width: 735px;"></p>
+<p><img alt="WeakMap(no clear() any more).png" src="https://mdn.mozillademos.org/files/15608/WeakMap(no%20clear()%20any%20more).png"></p>
</div>
<h2 id="语法">语法</h2>
@@ -26,7 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakMap/clear
<h3 id="使用_clear_方法">使用 <code>clear</code> 方法</h3>
-<pre class="brush: js;highlight:[10] example-bad">var wm = new WeakMap();
+<pre class="brush: js example-bad">var wm = new WeakMap();
var obj = {};
wm.set(obj, "foo");
@@ -47,55 +47,7 @@ wm.has(window) // false
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>36</td>
- <td>{{CompatNo}} [1]</td>
- <td>11</td>
- <td>23</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}} [1]</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] The <code>clear()</code> 曾经在高于 20 版本低于 45 版本之间被支持。</p>
+{{Compat}}
<h2 id="相近">相近</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html
index 212911cf30..f1dd0b2ddd 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html
@@ -53,53 +53,7 @@ wm.has(window); // 返回 false,因为 window 对象已经被删除了。
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (SpiderMonkey)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}[1]</td>
- <td>{{CompatGeckoDesktop("6.0")}}</td>
- <td>11</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (SpiderMonkey)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("6.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html
index 1c335a5ffc..26598a6cdf 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html
@@ -57,53 +57,7 @@ wm.get("baz"); // 返回 undefined.
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>36</td>
- <td>{{CompatGeckoDesktop("6.0")}}</td>
- <td>11</td>
- <td>23</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("6.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="Firefox_中的注意事项">Firefox 中的注意事项</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html
index 209fd757d0..80e653a911 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html
@@ -58,55 +58,9 @@ wm.has("baz"); // returns false
</tbody>
</table>
-<h2 id="浏览器兼容">浏览器兼容</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>36</td>
- <td>{{CompatGeckoDesktop("6.0")}}</td>
- <td>11</td>
- <td>23</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("6.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="Firefox-特有说明">Firefox-特有说明</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakref/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakref/index.html
index 9f9f275816..ec593be548 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/weakref/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/weakref/index.html
@@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakRef
<p>WeakRef对象包含对对象的弱引用,这个弱引用被称为该WeakRef对象的target或者是referent。对对象的弱引用是指当该对象应该被GC回收时不会阻止GC的回收行为。而与此相反的,一个普通的引用(默认是强引用)会将与之对应的对象保存在内存中。只有当该对象没有任何的强引用时,JavaScript引擎GC才会销毁该对象并且回收该对象所占的内存空间。如果上述情况发生了,那么你就无法通过任何的弱引用来获取该对象。</p>
<div class="note">
-<p><strong>Note:</strong> 在使用前请阅读<a href="#Avoid_where_possible">Avoid where possible</a>,对于WeakRef对象的使用要慎重考虑,<strong>能不使用就尽量不要使用</strong></p>
+<p><strong>备注:</strong> 在使用前请阅读<a href="#Avoid_where_possible">Avoid where possible</a>,对于WeakRef对象的使用要慎重考虑,<strong>能不使用就尽量不要使用</strong></p>
</div>
<h2 id="构造函数">构造函数</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakset/add/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakset/add/index.html
index 01209019ba..d57c1762e9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/weakset/add/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/weakset/add/index.html
@@ -64,53 +64,7 @@ ws.add(1);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>36</td>
- <td>{{CompatGeckoDesktop(34)}}</td>
- <td>{{CompatNo}}</td>
- <td>23</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatGeckoMobile(34) }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakset/delete/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakset/delete/index.html
index b7f9c4f1b2..bd4bb8e950 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/weakset/delete/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/weakset/delete/index.html
@@ -61,53 +61,7 @@ ws.has(window); // 返回 false。因为 WeakSet 中已经不存在 window
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>36</td>
- <td>{{CompatGeckoDesktop(34)}}</td>
- <td>{{CompatNo}}</td>
- <td>23</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatGeckoMobile(34) }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakset/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakset/has/index.html
index 60a33bf90e..896b71ccec 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/weakset/has/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/weakset/has/index.html
@@ -61,53 +61,7 @@ mySet.has(obj); // 返回 false
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>36</td>
- <td>{{CompatGeckoDesktop(34)}}</td>
- <td>{{CompatNo}}</td>
- <td>23</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatGeckoMobile(34) }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/webassembly/global/index.html b/files/zh-cn/web/javascript/reference/global_objects/webassembly/global/index.html
index c87d989111..4d6b153d0a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/webassembly/global/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/webassembly/global/index.html
@@ -67,7 +67,7 @@ WebAssembly.instantiateStreaming(fetch('global.wasm'), { js: { global } })
});</pre>
<div class="note">
-<p><strong>注意</strong>: 你可以在<a href="https://mdn.github.io/webassembly-examples/js-api-examples/global.html">running live on GitHub</a> 查看例子; 也可以访问<a href="https://github.com/mdn/webassembly-examples/blob/master/js-api-examples/global.html">source code</a>.</p>
+<p><strong>备注:</strong>: 你可以在<a href="https://mdn.github.io/webassembly-examples/js-api-examples/global.html">running live on GitHub</a> 查看例子; 也可以访问<a href="https://github.com/mdn/webassembly-examples/blob/master/js-api-examples/global.html">source code</a>.</p>
</div>
<h2 id="规格">规格</h2>
@@ -89,13 +89,9 @@ WebAssembly.instantiateStreaming(fetch('global.wasm'), { js: { global } })
</tbody>
</table>
-<h2 id="Browser_compatibility"
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>
-
-
-<p>{{Compat("javascript.builtins.WebAssembly.Global")}}</p>
-</div>
+{{Compat}}
<h2 id="See_also">See also</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/webassembly/index.html b/files/zh-cn/web/javascript/reference/global_objects/webassembly/index.html
index d4b5877590..f2637be5b6 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/webassembly/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/webassembly/index.html
@@ -63,7 +63,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly
<p>下面的示例(请参见GitHub上的<a href="https://github.com/mdn/webassembly-examples/blob/master/js-api-examples/instantiate-streaming.html">Instantiate-streaming.html</a>演示,并查看<a href="https://mdn.github.io/webassembly-examples/js-api-examples/instantiate-streaming.html">在线演示</a>)直接从流式底层源传输.wasm模块,然后对其进行编译和实例化,并通过<code>ResultObject</code>实现promise。 由于<code>instantiateStreaming()</code>函数接受对 {{domxref("Response")}} 对象的promise,因此您可以直接向其传递{{domxref("WindowOrWorkerGlobalScope.fetch()")}}调用,然后它将把返回的response传递给随后的函数。</p>
-<pre class="brush: js line-numbers language-js">var importObject = { imports: { imported_func: arg =&gt; console.log(arg) } };
+<pre class="brush: js">var importObject = { imports: { imported_func: arg =&gt; console.log(arg) } };
WebAssembly.instantiateStreaming(fetch('simple.wasm'), importObject)
.then(obj =&gt; obj.instance.exports.exported_func())</pre>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html b/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html
index e64f663b93..d66e1554ca 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html
@@ -18,7 +18,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance
<h2 id="构造函数">构造函数</h2>
<div class="warning">
-<p><strong>重要</strong>: 由于大型模块的实例化代价极高, 开发人员应只在必须同步实例化的时候,才使用<code>Instance()</code>;绝大多数情况应该使用异步方法{{jsxref("WebAssembly.instantiate()")}} .</p>
+<p><strong>警告:</strong>由于大型模块的实例化代价极高, 开发人员应只在必须同步实例化的时候,才使用<code>Instance()</code>;绝大多数情况应该使用异步方法{{jsxref("WebAssembly.instantiate()")}} .</p>
</div>
<pre class="syntaxbox">var myInstance = new WebAssembly.Instance(<em>module</em>, <em>importObject</em>);</pre>
@@ -41,7 +41,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance
<dl>
<dt>{{jsxref("WebAssembly/Instance/exports", "Instance.prototype.exports")}}</dt>
<dd>返回一个包含此 WebAssembly 模块实例所导出的全部成员的 JS 对象,以便 JavaScript 访问和使用这些成员,这个对象是只读的。</dd>
- <dt></dt>
</dl>
<h2 id="规格">规格</h2>
@@ -63,9 +62,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance
</tbody>
</table>
-<h2 id="Browser_compatibility"
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{Compat("javascript.builtins.WebAssembly.Instance")}}</div>
+{{Compat}}
<h2 id="参考">参考</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/webassembly/instantiate/index.html b/files/zh-cn/web/javascript/reference/global_objects/webassembly/instantiate/index.html
index 43b3aad734..9d0d988668 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/webassembly/instantiate/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/webassembly/instantiate/index.html
@@ -12,8 +12,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate
<li>第二种重载使用已编译的 {{jsxref("WebAssembly.Module")}} , 返回的 <code>Promise</code> 携带一个 <code>Module</code>的实例化对象 <code>Instance</code>. 如果这个 <code>Module</code> 已经被编译了或者是从缓存中获取的( <a href="/en-US/docs/WebAssembly/Caching_modules">retrieved from cache</a>), 那么这种重载方式是非常有用的.</li>
</ul>
-<div class="blockIndicator warning">
-<p><strong>重要</strong>: 此方法不是获取(fetch)和实例化wasm模块的最具效率方法。 如果可能的话,您应该改用较新的{{jsxref("WebAssembly.instantiateStreaming()")}}方法,该方法直接从原始字节码中直接获取,编译和实例化模块,因此不需要转换为{{jsxref("ArrayBuffer")}}。</p>
+<div class="warning">
+<p><strong>警告:</strong>此方法不是获取(fetch)和实例化wasm模块的最具效率方法。 如果可能的话,您应该改用较新的{{jsxref("WebAssembly.instantiateStreaming()")}}方法,该方法直接从原始字节码中直接获取,编译和实例化模块,因此不需要转换为{{jsxref("ArrayBuffer")}}。</p>
</div>
<h2 id="语法">语法</h2>
@@ -103,7 +103,7 @@ fetch('simple.wasm').then(response =&gt;
);</pre>
<div class="note">
-<p><strong>注</strong>: 查看GitHub(<a href="https://mdn.github.io/webassembly-examples/js-api-examples/">在线实例</a>)的 <a href="https://github.com/mdn/webassembly-examples/blob/master/js-api-examples/index.html">index.html</a> 中一个相似的例子,使用了我们的<code><a href="https://github.com/mdn/webassembly-examples/blob/master/wasm-utils.js#L1">fetchAndInstantiate()</a></code>库函数</p>
+<p><strong>备注:</strong>: 查看GitHub(<a href="https://mdn.github.io/webassembly-examples/js-api-examples/">在线实例</a>)的 <a href="https://github.com/mdn/webassembly-examples/blob/master/js-api-examples/index.html">index.html</a> 中一个相似的例子,使用了我们的<code><a href="https://github.com/mdn/webassembly-examples/blob/master/wasm-utils.js#L1">fetchAndInstantiate()</a></code>库函数</p>
</div>
<h3 id="第二种重载例子">第二种重载例子</h3>
@@ -158,13 +158,9 @@ onmessage = function(e) {
</tbody>
</table>
-<h2 id="Browser_compatibility"
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>
-
-
-<p>{{Compat("javascript.builtins.WebAssembly.instantiate")}}</p>
-</div>
+{{Compat}}
<h2 id="参见">参见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/webassembly/instantiatestreaming/index.html b/files/zh-cn/web/javascript/reference/global_objects/webassembly/instantiatestreaming/index.html
index 15af74d96b..9283dfc9c2 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/webassembly/instantiatestreaming/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/webassembly/instantiatestreaming/index.html
@@ -66,13 +66,9 @@ WebAssembly.instantiateStreaming(fetch('simple.wasm'), importObject)
</tbody>
</table>
-<h2 id="Browser_compatibility"
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>
-
-
-<p>{{Compat("javascript.builtins.WebAssembly.instantiateStreaming")}}</p>
-</div>
+{{Compat}}
<h2 id="See_also">See also</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/webassembly/memory/index.html b/files/zh-cn/web/javascript/reference/global_objects/webassembly/memory/index.html
index f8319d669c..f3f0afebe5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/webassembly/memory/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/webassembly/memory/index.html
@@ -28,7 +28,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory
</dl>
<div class="note">
-<p><strong>注意</strong>: A WebAssembly 页面的大小为一个常量 65,536 字节,即64KB。</p>
+<p><strong>备注:</strong>: A WebAssembly 页面的大小为一个常量 65,536 字节,即64KB。</p>
</div>
<h3 id="异常">异常</h3>
@@ -95,13 +95,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory
</tbody>
</table>
-<h2 id="Browser_compatibility"
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>
-
-
-<p>{{Compat("javascript.builtins.WebAssembly.Memory")}}</p>
-</div>
+{{Compat}}
<h2 id="参见">参见</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/webassembly/module/index.html b/files/zh-cn/web/javascript/reference/global_objects/webassembly/module/index.html
index 5f3839d6b2..eb2fee5a2a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/webassembly/module/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/webassembly/module/index.html
@@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Module
<h2 id="构造函数语法">构造函数语法</h2>
<div class="warning">
-<p><strong>重要提示:</strong>由于大型模块的编译可能很消耗资源,开发人员只有在绝对需要同步编译时,才使用 <code>Module()</code> 构造函数;其他情况下,应该使用异步 {{jsxref("WebAssembly.compile()")}} 方法。</p>
+<p><strong>警告:</strong>由于大型模块的编译可能很消耗资源,开发人员只有在绝对需要同步编译时,才使用 <code>Module()</code> 构造函数;其他情况下,应该使用异步 {{jsxref("WebAssembly.compile()")}} 方法。</p>
</div>
<pre class="syntaxbox">var myModule = new WebAssembly.Module(bufferSource);</pre>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/webassembly/table/index.html b/files/zh-cn/web/javascript/reference/global_objects/webassembly/table/index.html
index 5e1b468f38..ff779c45fb 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/webassembly/table/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/webassembly/table/index.html
@@ -10,7 +10,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Table
<p>这是一个包装了WebAssemble Table 的Javascript包装对象,具有类数组结构,存储了多个函数引用。在Javascript或者WebAssemble中创建Table 对象可以同时被Javascript或WebAssemble 访问和更改。</p>
<div class="note">
-<p><strong>Note</strong>: Tables 对象目前只能存储函数引用,不过在将来可能会被扩展。</p>
+<p><strong>备注:</strong>: Tables 对象目前只能存储函数引用,不过在将来可能会被扩展。</p>
</div>
<h2 id="语法">语法</h2>
diff --git a/files/zh-cn/web/javascript/reference/index.html b/files/zh-cn/web/javascript/reference/index.html
index 62768a63d0..5ee1ba6672 100644
--- a/files/zh-cn/web/javascript/reference/index.html
+++ b/files/zh-cn/web/javascript/reference/index.html
@@ -8,416 +8,367 @@ tags:
- 参考
translation_of: Web/JavaScript/Reference
---
+
<div>{{JsSidebar}}</div>
-<div>在 MDN 的 JavaScript 分区中,这一部分被作为 Javascript 的资料库。阅读<a href="/zh-CN/docs/Web/JavaScript/Reference/About">关于该参考</a>以了解更多。</div>
+<div>
+ 在 MDN 的 JavaScript 分区中,这一部分被作为 Javascript 的资料库。阅读<a
+ href="/zh-CN/docs/Web/JavaScript/Reference/About"
+ >关于该参考</a
+ >以了解更多。
+</div>
<h2 id="内置">内置</h2>
<p>{{JSxRef("Global_Objects", "JavaScript 标准内置对象")}}, 以及他们的方法和属性.</p>
-<ul class="card-grid">
- <li>
- <h4 id="值属性">值属性</h4>
-
- <ul>
- <li>{{JSxRef("Infinity")}}</li>
- <li>{{JSxRef("NaN")}}</li>
- <li>{{JSxRef("undefined")}}</li>
- <li>{{JSxRef("globalThis")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="Function_属性">Function 属性</h4>
-
- <ul>
- <li>{{JSxRef("Global_Objects/eval", "eval()")}}</li>
- <li>{{JSxRef("Global_Objects/isFinite", "isFinite()")}}</li>
- <li>{{JSxRef("Global_Objects/isNaN", "isNaN()")}}</li>
- <li>{{JSxRef("Global_Objects/parseFloat", "parseFloat()")}}</li>
- <li>{{JSxRef("Global_Objects/parseInt", "parseInt()")}}</li>
- <li>{{JSxRef("Global_Objects/decodeURI", "decodeURI()")}}</li>
- <li>{{JSxRef("Global_Objects/decodeURIComponent", "decodeURIComponent()")}}</li>
- <li>{{JSxRef("Global_Objects/encodeURI", "encodeURI()")}}</li>
- <li>{{JSxRef("Global_Objects/encodeURIComponent", "encodeURIComponent()")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="基本对象">基本对象</h4>
-
- <ul>
- <li>{{JSxRef("Object")}}</li>
- <li>{{JSxRef("Function")}}</li>
- <li>{{JSxRef("Boolean")}}</li>
- <li>{{JSxRef("Symbol")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="错误对象">错误对象</h4>
-
- <ul>
- <li>{{JSxRef("Error")}}</li>
- <li>{{JSxRef("AggregateError")}}</li>
- <li>{{JSxRef("EvalError")}}</li>
- <li>{{JSxRef("InternalError")}}</li>
- <li>{{JSxRef("RangeError")}}</li>
- <li>{{JSxRef("ReferenceError")}}</li>
- <li>{{JSxRef("SyntaxError")}}</li>
- <li>{{JSxRef("TypeError")}}</li>
- <li>{{JSxRef("URIError")}}</li>
- </ul>
- </li>
-</ul>
-
-<ul class="card-grid">
- <li>
- <h4 id="Numbers_dates">Numbers &amp; dates</h4>
-
- <ul>
- <li>{{JSxRef("Number")}}</li>
- <li>{{JSxRef("BigInt")}}</li>
- <li>{{JSxRef("Math")}}</li>
- <li>{{JSxRef("Date")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="文本处理">文本处理</h4>
-
- <ul>
- <li>{{JSxRef("String")}} {{JSxRef("RegExp")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="索引集合类">索引集合类</h4>
-
- <ul>
- <li>{{JSxRef("Array")}}</li>
- <li>{{JSxRef("Int8Array")}}</li>
- <li>{{JSxRef("Uint8Array")}}</li>
- <li>{{JSxRef("Uint8ClampedArray")}}</li>
- <li>{{JSxRef("Int16Array")}}</li>
- <li>{{JSxRef("Uint16Array")}}</li>
- <li>{{JSxRef("Int32Array")}}</li>
- <li>{{JSxRef("Uint32Array")}}</li>
- <li>{{JSxRef("Float32Array")}}</li>
- <li>{{JSxRef("Float64Array")}}</li>
- <li>{{JSxRef("BigInt64Array")}}</li>
- <li>{{JSxRef("BigUint64Array")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="Keyed_collections">Keyed collections</h4>
-
- <ul>
- <li>{{JSxRef("Map")}}</li>
- <li>{{JSxRef("Set")}}</li>
- <li>{{JSxRef("WeakMap")}}</li>
- <li>{{JSxRef("WeakSet")}}</li>
- </ul>
- </li>
-</ul>
-
-<ul class="card-grid">
- <li>
- <h4 id="结构化数据">结构化数据</h4>
-
- <ul>
- <li>{{JSxRef("ArrayBuffer")}}</li>
- <li>{{JSxRef("SharedArrayBuffer")}}</li>
- <li>{{JSxRef("Atomics")}}</li>
- <li>{{JSxRef("DataView")}}</li>
- <li>{{JSxRef("JSON")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="控制抽象化">控制抽象化</h4>
-
- <ul>
- <li>{{JSxRef("Promise")}}</li>
- <li>{{JSxRef("Generator")}}</li>
- <li>{{JSxRef("GeneratorFunction")}}</li>
- <li>{{JSxRef("AsyncFunction")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="反射">反射</h4>
-
- <ul>
- <li>{{JSxRef("Reflect")}}</li>
- <li>{{JSxRef("Proxy")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="国际化">国际化</h4>
-
- <ul>
- <li>{{JSxRef("Intl")}}</li>
- <li>{{JSxRef("Global_Objects/Intl/Collator", "Intl.Collator")}}</li>
- <li>{{JSxRef("Global_Objects/Intl/DateTimeFormat", "Intl.DateTimeFormat")}}</li>
- <li>{{JSxRef("Global_Objects/Intl/DisplayNames", "Intl.DisplayNames")}}</li>
- <li>{{JSxRef("Global_Objects/Intl/ListFormat", "Intl.ListFormat")}}</li>
- <li>{{JSxRef("Global_Objects/Intl/Locale", "Intl.Locale")}}</li>
- <li>{{JSxRef("Global_Objects/Intl/NumberFormat", "Intl.NumberFormat")}}</li>
- <li>{{JSxRef("Global_Objects/Intl/PluralRules", "Intl.PluralRules")}}</li>
- <li>{{JSxRef("Global_Objects/Intl/RelativeTimeFormat", "Intl.RelativeTimeFormat")}}</li>
- </ul>
- </li>
-</ul>
-
-<ul class="card-grid">
- <li>WebAssembly
-
- <ul>
- <li>{{JSxRef("WebAssembly")}}</li>
- <li>{{JSxRef("WebAssembly.Module")}}</li>
- <li>{{JSxRef("WebAssembly.Instance")}}</li>
- <li>{{JSxRef("WebAssembly.Memory")}}</li>
- <li>{{JSxRef("WebAssembly.Table")}}</li>
- <li>{{JSxRef("WebAssembly.CompileError")}}</li>
- <li>{{JSxRef("WebAssembly.LinkError")}}</li>
- <li>{{JSxRef("WebAssembly.RuntimeError")}}</li>
- </ul>
- </li>
+<h3 id="值属性">值属性</h3>
+
+<ul>
+ <li>{{JSxRef("Infinity")}}</li>
+ <li>{{JSxRef("NaN")}}</li>
+ <li>{{JSxRef("undefined")}}</li>
+ <li>{{JSxRef("globalThis")}}</li>
+</ul>
+
+<h3 id="Function_属性">Function 属性</h3>
+
+<ul>
+ <li>{{JSxRef("Global_Objects/eval", "eval()")}}</li>
+ <li>{{JSxRef("Global_Objects/isFinite", "isFinite()")}}</li>
+ <li>{{JSxRef("Global_Objects/isNaN", "isNaN()")}}</li>
+ <li>{{JSxRef("Global_Objects/parseFloat", "parseFloat()")}}</li>
+ <li>{{JSxRef("Global_Objects/parseInt", "parseInt()")}}</li>
+ <li>{{JSxRef("Global_Objects/decodeURI", "decodeURI()")}}</li>
+ <li>{{JSxRef("Global_Objects/decodeURIComponent", "decodeURIComponent()")}}</li>
+ <li>{{JSxRef("Global_Objects/encodeURI", "encodeURI()")}}</li>
+ <li>{{JSxRef("Global_Objects/encodeURIComponent", "encodeURIComponent()")}}</li>
+</ul>
+
+<h3 id="基本对象">基本对象</h3>
+
+<ul>
+ <li>{{JSxRef("Object")}}</li>
+ <li>{{JSxRef("Function")}}</li>
+ <li>{{JSxRef("Boolean")}}</li>
+ <li>{{JSxRef("Symbol")}}</li>
+</ul>
+
+<h3 id="错误对象">错误对象</h3>
+
+<ul>
+ <li>{{JSxRef("Error")}}</li>
+ <li>{{JSxRef("AggregateError")}}</li>
+ <li>{{JSxRef("EvalError")}}</li>
+ <li>{{JSxRef("InternalError")}}</li>
+ <li>{{JSxRef("RangeError")}}</li>
+ <li>{{JSxRef("ReferenceError")}}</li>
+ <li>{{JSxRef("SyntaxError")}}</li>
+ <li>{{JSxRef("TypeError")}}</li>
+ <li>{{JSxRef("URIError")}}</li>
+</ul>
+
+<h3 id="Numbers_dates">Numbers &amp; dates</h3>
+
+<ul>
+ <li>{{JSxRef("Number")}}</li>
+ <li>{{JSxRef("BigInt")}}</li>
+ <li>{{JSxRef("Math")}}</li>
+ <li>{{JSxRef("Date")}}</li>
+</ul>
+
+<h3 id="文本处理">文本处理</h3>
+
+<ul>
+ <li>{{JSxRef("String")}} {{JSxRef("RegExp")}}</li>
+</ul>
+
+<h3 id="索引集合类">索引集合类</h3>
+
+<ul>
+ <li>{{JSxRef("Array")}}</li>
+ <li>{{JSxRef("Int8Array")}}</li>
+ <li>{{JSxRef("Uint8Array")}}</li>
+ <li>{{JSxRef("Uint8ClampedArray")}}</li>
+ <li>{{JSxRef("Int16Array")}}</li>
+ <li>{{JSxRef("Uint16Array")}}</li>
+ <li>{{JSxRef("Int32Array")}}</li>
+ <li>{{JSxRef("Uint32Array")}}</li>
+ <li>{{JSxRef("Float32Array")}}</li>
+ <li>{{JSxRef("Float64Array")}}</li>
+ <li>{{JSxRef("BigInt64Array")}}</li>
+ <li>{{JSxRef("BigUint64Array")}}</li>
+</ul>
+
+<h3 id="Keyed_collections">Keyed collections</h3>
+
+<ul>
+ <li>{{JSxRef("Map")}}</li>
+ <li>{{JSxRef("Set")}}</li>
+ <li>{{JSxRef("WeakMap")}}</li>
+ <li>{{JSxRef("WeakSet")}}</li>
+</ul>
+
+<h3 id="结构化数据">结构化数据</h3>
+
+<ul>
+ <li>{{JSxRef("ArrayBuffer")}}</li>
+ <li>{{JSxRef("SharedArrayBuffer")}}</li>
+ <li>{{JSxRef("Atomics")}}</li>
+ <li>{{JSxRef("DataView")}}</li>
+ <li>{{JSxRef("JSON")}}</li>
+</ul>
+
+<h3 id="控制抽象化">控制抽象化</h3>
+
+<ul>
+ <li>{{JSxRef("Promise")}}</li>
+ <li>{{JSxRef("Generator")}}</li>
+ <li>{{JSxRef("GeneratorFunction")}}</li>
+ <li>{{JSxRef("AsyncFunction")}}</li>
+</ul>
+
+<h3 id="反射">反射</h3>
+
+<ul>
+ <li>{{JSxRef("Reflect")}}</li>
+ <li>{{JSxRef("Proxy")}}</li>
+</ul>
+
+<h3 id="国际化">国际化</h3>
+
+<ul>
+ <li>{{JSxRef("Intl")}}</li>
+ <li>{{JSxRef("Global_Objects/Intl/Collator", "Intl.Collator")}}</li>
+ <li>{{JSxRef("Global_Objects/Intl/DateTimeFormat", "Intl.DateTimeFormat")}}</li>
+ <li>{{JSxRef("Global_Objects/Intl/DisplayNames", "Intl.DisplayNames")}}</li>
+ <li>{{JSxRef("Global_Objects/Intl/ListFormat", "Intl.ListFormat")}}</li>
+ <li>{{JSxRef("Global_Objects/Intl/Locale", "Intl.Locale")}}</li>
+ <li>{{JSxRef("Global_Objects/Intl/NumberFormat", "Intl.NumberFormat")}}</li>
+ <li>{{JSxRef("Global_Objects/Intl/PluralRules", "Intl.PluralRules")}}</li>
+ <li>{{JSxRef("Global_Objects/Intl/RelativeTimeFormat", "Intl.RelativeTimeFormat")}}</li>
+</ul>
+
+<h3 id="WebAssembly">WebAssembly</h3>
+
+<ul>
+ <li>{{JSxRef("WebAssembly")}}</li>
+ <li>{{JSxRef("WebAssembly.Module")}}</li>
+ <li>{{JSxRef("WebAssembly.Instance")}}</li>
+ <li>{{JSxRef("WebAssembly.Memory")}}</li>
+ <li>{{JSxRef("WebAssembly.Table")}}</li>
+ <li>{{JSxRef("WebAssembly.CompileError")}}</li>
+ <li>{{JSxRef("WebAssembly.LinkError")}}</li>
+ <li>{{JSxRef("WebAssembly.RuntimeError")}}</li>
</ul>
<h2 id="语句">语句</h2>
<p>{{JSxRef("Statements", "语句和声明")}}</p>
-<ul class="card-grid">
- <li>
- <h4 id="控制流">控制流</h4>
-
- <ul>
- <li>{{jsxref("Statements/block", "Block")}}</li>
- <li>{{jsxref("Statements/break", "break")}}</li>
- <li>{{jsxref("Statements/continue", "continue")}}</li>
- <li>{{jsxref("Statements/Empty", "Empty")}}</li>
- <li>{{jsxref("Statements/if...else", "if...else")}}</li>
- <li>{{jsxref("Statements/switch", "switch")}}</li>
- <li>{{jsxref("Statements/throw", "throw")}}</li>
- <li>{{jsxref("Statements/try...catch", "try...catch")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="声明">声明</h4>
-
- <ul>
- <li>{{jsxref("Statements/var", "var")}}</li>
- <li>{{jsxref("Statements/let", "let")}}</li>
- <li>{{jsxref("Statements/const", "const")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="函数和类">函数和类</h4>
-
- <ul>
- <li>{{jsxref("Statements/function", "function")}}</li>
- <li>{{jsxref("Statements/function*", "function*")}}</li>
- <li>{{jsxref("Statements/async_function", "async function")}}</li>
- <li>{{jsxref("Statements/return", "return")}}</li>
- <li>{{jsxref("Statements/class", "class")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="迭代">迭代</h4>
-
- <ul>
- <li>{{jsxref("Statements/do...while", "do...while")}}</li>
- <li>{{jsxref("Statements/for", "for")}}</li>
- <li>{{jsxref("Statements/for_each...in", "for each...in")}}</li>
- <li>{{jsxref("Statements/for...in", "for...in")}}</li>
- <li>{{jsxref("Statements/for...of", "for...of")}}</li>
- <li>{{jsxref("Statements/for-await...of", "for await...of")}}</li>
- <li>{{jsxref("Statements/while", "while")}}</li>
- </ul>
- </li>
-</ul>
-
-<ul class="card-grid">
- <li>
- <h4 id="其他">其他</h4>
-
- <ul>
- <li>{{jsxref("Statements/debugger", "debugger")}}</li>
- <li>{{jsxref("Statements/import", "import")}}</li>
- <li>{{jsxref("Statements/label", "label")}}</li>
- <li>{{jsxref("Statements/with", "with")}}</li>
- </ul>
- </li>
+<h3 id="控制流">控制流</h3>
+
+<ul>
+ <li>{{jsxref("Statements/block", "Block")}}</li>
+ <li>{{jsxref("Statements/break", "break")}}</li>
+ <li>{{jsxref("Statements/continue", "continue")}}</li>
+ <li>{{jsxref("Statements/Empty", "Empty")}}</li>
+ <li>{{jsxref("Statements/if...else", "if...else")}}</li>
+ <li>{{jsxref("Statements/switch", "switch")}}</li>
+ <li>{{jsxref("Statements/throw", "throw")}}</li>
+ <li>{{jsxref("Statements/try...catch", "try...catch")}}</li>
</ul>
+<h3 id="声明">声明</h3>
+
+<ul>
+ <li>{{jsxref("Statements/var", "var")}}</li>
+ <li>{{jsxref("Statements/let", "let")}}</li>
+ <li>{{jsxref("Statements/const", "const")}}</li>
+</ul>
+
+<h3 id="函数和类">函数和类</h3>
+
+<ul>
+ <li>{{jsxref("Statements/function", "function")}}</li>
+ <li>{{jsxref("Statements/function*", "function*")}}</li>
+ <li>{{jsxref("Statements/async_function", "async function")}}</li>
+ <li>{{jsxref("Statements/return", "return")}}</li>
+ <li>{{jsxref("Statements/class", "class")}}</li>
+</ul>
+
+<h3 id="迭代">迭代</h3>
+
+<ul>
+ <li>{{jsxref("Statements/do...while", "do...while")}}</li>
+ <li>{{jsxref("Statements/for", "for")}}</li>
+ <li>{{jsxref("Statements/for_each...in", "for each...in")}}</li>
+ <li>{{jsxref("Statements/for...in", "for...in")}}</li>
+ <li>{{jsxref("Statements/for...of", "for...of")}}</li>
+ <li>{{jsxref("Statements/for-await...of", "for await...of")}}</li>
+ <li>{{jsxref("Statements/while", "while")}}</li>
+</ul>
+
+<h3 id="其他">其他</h3>
+
+<ul>
+ <li>{{jsxref("Statements/debugger", "debugger")}}</li>
+ <li>{{jsxref("Statements/import", "import")}}</li>
+ <li>{{jsxref("Statements/label", "label")}}</li>
+ <li>{{jsxref("Statements/with", "with")}}</li>
+</ul>
+
+
<h2 id="表达式和运算符">表达式和运算符</h2>
<p>{{JSxRef("Operators", "表达式和运算符")}}. </p>
-<div>
-<ul class="card-grid">
- <li>
- <h4 id="Primary_expressions">Primary expressions</h4>
-
- <ul>
- <li>{{JSxRef("Operators/this", "this")}}</li>
- <li>{{JSxRef("Operators/function", "function")}}</li>
- <li>{{JSxRef("Operators/class", "class")}}</li>
- <li>{{JSxRef("Operators/function*", "function*")}}</li>
- <li>{{JSxRef("Operators/yield", "yield")}}</li>
- <li>{{JSxRef("Operators/yield*", "yield*")}}</li>
- <li>{{JSxRef("Operators/async_function", "async function")}}</li>
- <li>{{JSxRef("Operators/await", "await")}}</li>
- <li>{{JSxRef("Global_Objects/Array", "[]")}}</li>
- <li>{{JSxRef("Operators/Object_initializer", "{}")}}</li>
- <li>{{JSxRef("Global_Objects/RegExp", "/ab+c/i")}}</li>
- <li>{{JSxRef("Operators/Grouping", "( )")}}</li>
- <li>{{JSxRef("null")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="Left-hand-side_expressions">Left-hand-side expressions</h4>
-
- <ul>
- <li>{{JSxRef("Operators/Property_accessors", "Property accessors", "", 1)}}</li>
- <li>{{JSxRef("Operators/new", "new")}}</li>
- <li>{{JSxRef("Operators/new%2Etarget", "new.target")}}</li>
- <li>{{JSxRef("Operators/super", "super")}}</li>
- <li>{{JSxRef("Operators/Spread_syntax", "...obj")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="Increment_decrement">Increment &amp; decrement</h4>
-
- <ul>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "A++", "#Increment")}}</li>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "A--", "#Decrement")}}</li>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "++A", "#Increment")}}</li>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "--A", "#Decrement")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="一元运算符">一元运算符</h4>
-
- <ul>
- <li>{{JSxRef("Operators/delete", "delete")}}</li>
- <li>{{JSxRef("Operators/void", "void")}}</li>
- <li>{{JSxRef("Operators/typeof", "typeof")}}</li>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "+", "#Unary_plus")}}</li>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "-", "#Unary_negation")}}</li>
- <li>{{JSxRef("Operators/Bitwise_Operators", "~", "#Bitwise_NOT")}}</li>
- <li>{{JSxRef("Operators/Logical_Operators", "!", "#Logical_NOT")}}</li>
- </ul>
- </li>
-</ul>
-
-<ul class="card-grid">
- <li>
- <h4 id="算术运算符">算术运算符</h4>
-
- <ul>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "+", "#Addition")}}</li>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "-", "#Subtraction")}}</li>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "/", "#Division")}}</li>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "*", "#Multiplication")}}</li>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "%", "#Remainder")}}</li>
- <li>{{JSxRef("Operators/Arithmetic_Operators", "**", "#Exponentiation")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="关系运算符">关系运算符</h4>
-
- <ul>
- <li>{{JSxRef("Operators/in", "in")}}</li>
- <li>{{JSxRef("Operators/instanceof", "instanceof")}}</li>
- <li>{{JSxRef("Operators/Comparison_Operators", "&lt;", "#Less_than_operator")}}</li>
- <li>{{JSxRef("Operators/Comparison_Operators", "&gt;", "#Greater_than_operator")}}</li>
- <li>{{JSxRef("Operators/Comparison_Operators", "&lt;=", "#Less_than_or_equal_operator")}}</li>
- <li>{{JSxRef("Operators/Comparison_Operators", "&gt;=", "#Greater_than_or_equal_operator")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="相等运算符">相等运算符</h4>
-
- <ul>
- <li>{{JSxRef("Operators/Comparison_Operators", "==", "#Equality")}}</li>
- <li>{{JSxRef("Operators/Comparison_Operators", "!=", "#Inequality")}}</li>
- <li>{{JSxRef("Operators/Comparison_Operators", "===", "#Identity")}}</li>
- <li>{{JSxRef("Operators/Comparison_Operators", "!==", "#Nonidentity")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="位移运算符">位移运算符</h4>
-
- <ul>
- <li>{{JSxRef("Operators/Bitwise_Operators", "&lt;&lt;", "#Left_shift")}}</li>
- <li>{{JSxRef("Operators/Bitwise_Operators", "&gt;&gt;", "#Right_shift")}}</li>
- <li>{{JSxRef("Operators/Bitwise_Operators", "&gt;&gt;&gt;", "#Unsigned_right_shift")}}</li>
- </ul>
- </li>
-</ul>
-
-<ul class="card-grid">
- <li>
- <h4 id="位运算">位运算</h4>
-
- <ul>
- <li>{{JSxRef("Operators/Bitwise_Operators", "&amp;", "#Bitwise_AND")}}</li>
- <li>{{JSxRef("Operators/Bitwise_Operators", "|", "#Bitwise_OR")}}</li>
- <li>{{JSxRef("Operators/Bitwise_Operators", "^", "#Bitwise_XOR")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="逻辑运算">逻辑运算</h4>
-
- <ul>
- <li>{{JSxRef("Operators/Logical_Operators", "&amp;&amp;", "#Logical_AND")}}</li>
- <li>{{JSxRef("Operators/Logical_Operators", "||", "#Logical_OR")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="条件运算符">条件运算符</h4>
-
- <ul>
- <li>{{JSxRef("Operators/Conditional_Operator", "(condition ? ifTrue : ifFalse)")}}</li>
- </ul>
- </li>
- <li>
- <h4 id="赋值操作符">赋值操作符</h4>
-
- <ul>
- <li>{{JSxRef("Operators/Assignment_Operators", "=", "#Assignment")}}</li>
- <li>{{JSxRef("Operators/Assignment_Operators", "*=", "#Multiplication_assignment")}}</li>
- <li>{{JSxRef("Operators/Assignment_Operators", "/=", "#Division_assignment")}}</li>
- <li>{{JSxRef("Operators/Assignment_Operators", "%=", "#Remainder_assignment")}}</li>
- <li>{{JSxRef("Operators/Assignment_Operators", "+=", "#Addition_assignment")}}</li>
- <li>{{JSxRef("Operators/Assignment_Operators", "-=", "#Subtraction_assignment")}}</li>
- <li>{{JSxRef("Operators/Assignment_Operators", "&lt;&lt;=", "#Left_shift_assignment")}}</li>
- <li>{{JSxRef("Operators/Assignment_Operators", "&gt;&gt;=", "#Right_shift_assignment")}}</li>
- <li>{{JSxRef("Operators/Assignment_Operators", "&gt;&gt;&gt;=", "#Unsigned_right_shift_assignment")}}</li>
- <li>{{JSxRef("Operators/Assignment_Operators", "&amp;=", "#Bitwise_AND_assignment")}}</li>
- <li>{{JSxRef("Operators/Assignment_Operators", "^=", "#Bitwise_XOR_assignment")}}</li>
- <li>{{JSxRef("Operators/Assignment_Operators", "|=", "#Bitwise_OR_assignment")}}</li>
- <li>{{JSxRef("Operators/Destructuring_assignment", "[a, b] = [1, 2]")}}</li>
- <li>{{JSxRef("Operators/Destructuring_assignment", "{a, b} = {a:1, b:2}")}}</li>
- </ul>
- </li>
+<h3 id="Primary_expressions">Primary expressions</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/this", "this")}}</li>
+ <li>{{JSxRef("Operators/function", "function")}}</li>
+ <li>{{JSxRef("Operators/class", "class")}}</li>
+ <li>{{JSxRef("Operators/function*", "function*")}}</li>
+ <li>{{JSxRef("Operators/yield", "yield")}}</li>
+ <li>{{JSxRef("Operators/yield*", "yield*")}}</li>
+ <li>{{JSxRef("Operators/async_function", "async function")}}</li>
+ <li>{{JSxRef("Operators/await", "await")}}</li>
+ <li>{{JSxRef("Global_Objects/Array", "[]")}}</li>
+ <li>{{JSxRef("Operators/Object_initializer", "{}")}}</li>
+ <li>{{JSxRef("Global_Objects/RegExp", "/ab+c/i")}}</li>
+ <li>{{JSxRef("Operators/Grouping", "( )")}}</li>
+ <li>{{JSxRef("null")}}</li>
</ul>
-</div>
+
+<h3 id="Left-hand-side_expressions">Left-hand-side expressions</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/Property_accessors", "Property accessors", "", 1)}}</li>
+ <li>{{JSxRef("Operators/new", "new")}}</li>
+ <li>{{JSxRef("Operators/new%2Etarget", "new.target")}}</li>
+ <li>{{JSxRef("Operators/super", "super")}}</li>
+ <li>{{JSxRef("Operators/Spread_syntax", "...obj")}}</li>
+</ul>
+
+<h3 id="Increment_decrement">Increment &amp; decrement</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "A++", "#Increment")}}</li>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "A--", "#Decrement")}}</li>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "++A", "#Increment")}}</li>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "--A", "#Decrement")}}</li>
+</ul>
+
+<h3 id="一元运算符">一元运算符</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/delete", "delete")}}</li>
+ <li>{{JSxRef("Operators/void", "void")}}</li>
+ <li>{{JSxRef("Operators/typeof", "typeof")}}</li>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "+", "#Unary_plus")}}</li>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "-", "#Unary_negation")}}</li>
+ <li>{{JSxRef("Operators/Bitwise_Operators", "~", "#Bitwise_NOT")}}</li>
+ <li>{{JSxRef("Operators/Logical_Operators", "!", "#Logical_NOT")}}</li>
+</ul>
+
+<h3 id="算术运算符">算术运算符</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "+", "#Addition")}}</li>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "-", "#Subtraction")}}</li>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "/", "#Division")}}</li>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "*", "#Multiplication")}}</li>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "%", "#Remainder")}}</li>
+ <li>{{JSxRef("Operators/Arithmetic_Operators", "**", "#Exponentiation")}}</li>
+</ul>
+
+<h3 id="关系运算符">关系运算符</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/in", "in")}}</li>
+ <li>{{JSxRef("Operators/instanceof", "instanceof")}}</li>
+ <li>{{JSxRef("Operators/Comparison_Operators", "&lt;", "#Less_than_operator")}}</li>
+ <li>{{JSxRef("Operators/Comparison_Operators", "&gt;", "#Greater_than_operator")}}</li>
+ <li>{{JSxRef("Operators/Comparison_Operators", "&lt;=", "#Less_than_or_equal_operator")}}</li>
+ <li>{{JSxRef("Operators/Comparison_Operators", "&gt;=", "#Greater_than_or_equal_operator")}}</li>
+</ul>
+</li>
+
+<h3 id="相等运算符">相等运算符</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/Comparison_Operators", "==", "#Equality")}}</li>
+ <li>{{JSxRef("Operators/Comparison_Operators", "!=", "#Inequality")}}</li>
+ <li>{{JSxRef("Operators/Comparison_Operators", "===", "#Identity")}}</li>
+ <li>{{JSxRef("Operators/Comparison_Operators", "!==", "#Nonidentity")}}</li>
+</ul>
+
+<h3 id="位移运算符">位移运算符</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/Bitwise_Operators", "&lt;&lt;", "#Left_shift")}}</li>
+ <li>{{JSxRef("Operators/Bitwise_Operators", "&gt;&gt;", "#Right_shift")}}</li>
+ <li>{{JSxRef("Operators/Bitwise_Operators", "&gt;&gt;&gt;", "#Unsigned_right_shift")}}</li>
+</ul>
+
+<h3 id="位运算">位运算</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/Bitwise_Operators", "&amp;", "#Bitwise_AND")}}</li>
+ <li>{{JSxRef("Operators/Bitwise_Operators", "|", "#Bitwise_OR")}}</li>
+ <li>{{JSxRef("Operators/Bitwise_Operators", "^", "#Bitwise_XOR")}}</li>
+</ul>
+
+<h3 id="逻辑运算">逻辑运算</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/Logical_Operators", "&amp;&amp;", "#Logical_AND")}}</li>
+ <li>{{JSxRef("Operators/Logical_Operators", "||", "#Logical_OR")}}</li>
+</ul>
+
+<h3 id="条件运算符">条件运算符</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/Conditional_Operator", "(condition ? ifTrue : ifFalse)")}}</li>
+</ul>
+
+<h3 id="赋值操作符">赋值操作符</h3>
+
+<ul>
+ <li>{{JSxRef("Operators/Assignment_Operators", "=", "#Assignment")}}</li>
+ <li>{{JSxRef("Operators/Assignment_Operators", "*=", "#Multiplication_assignment")}}</li>
+ <li>{{JSxRef("Operators/Assignment_Operators", "/=", "#Division_assignment")}}</li>
+ <li>{{JSxRef("Operators/Assignment_Operators", "%=", "#Remainder_assignment")}}</li>
+ <li>{{JSxRef("Operators/Assignment_Operators", "+=", "#Addition_assignment")}}</li>
+ <li>{{JSxRef("Operators/Assignment_Operators", "-=", "#Subtraction_assignment")}}</li>
+ <li>{{JSxRef("Operators/Assignment_Operators", "&lt;&lt;=", "#Left_shift_assignment")}}</li>
+ <li>{{JSxRef("Operators/Assignment_Operators", "&gt;&gt;=", "#Right_shift_assignment")}}</li>
+ <li>{{JSxRef("Operators/Assignment_Operators", "&gt;&gt;&gt;=", "#Unsigned_right_shift_assignment")}}</li>
+ <li>{{JSxRef("Operators/Assignment_Operators", "&amp;=", "#Bitwise_AND_assignment")}}</li>
+ <li>{{JSxRef("Operators/Assignment_Operators", "^=", "#Bitwise_XOR_assignment")}}</li>
+ <li>{{JSxRef("Operators/Assignment_Operators", "|=", "#Bitwise_OR_assignment")}}</li>
+ <li>{{JSxRef("Operators/Destructuring_assignment", "[a, b] = [1, 2]")}}</li>
+ <li>{{JSxRef("Operators/Destructuring_assignment", "{a, b} = {a:1, b:2}")}}</li>
+</ul>
+
<h2 id="函数">函数</h2>
<p>本章介绍如何使用 <a href="/zh-CN/docs/Web/JavaScript/Reference/Functions">JavaScript函数</a> 来开发应用程序。</p>
<ul>
- <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/arguments"><code>arguments</code></a></li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions">箭头函数</a></li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/Default_parameters">默认参数</a></li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/rest_parameters">剩余参数</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/arguments"><code>arguments</code></a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions">箭头函数</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/Default_parameters">默认参数</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/rest_parameters">剩余参数</a></li>
</ul>
<h2 id="附加参考页面">附加参考页面</h2>
<ul>
- <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Lexical_grammar">词法文法</a></li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Data_structures">数据类型和数据结构</a></li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Strict_mode">严格模式</a></li>
- <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features">过时的特性</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Lexical_grammar">词法文法</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Data_structures">数据类型和数据结构</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Strict_mode">严格模式</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features">过时的特性</a></li>
</ul>
diff --git a/files/zh-cn/web/javascript/reference/lexical_grammar/index.html b/files/zh-cn/web/javascript/reference/lexical_grammar/index.html
index c862bf1e70..d57090cf2b 100644
--- a/files/zh-cn/web/javascript/reference/lexical_grammar/index.html
+++ b/files/zh-cn/web/javascript/reference/lexical_grammar/index.html
@@ -219,12 +219,12 @@ comment();</pre>
console.log("Hello world");
</pre>
-<div class="blockIndicator note">
-<p><strong>注意</strong>:JavaScript 中的 hashbang 注释模仿 <a href="https://en.wikipedia.org/wiki/Shebang_(Unix)">Unix 中的 shebangs</a>,用于指定适当的解释器运行文件。</p>
+<div class="note">
+<p><strong>备注:</strong>:JavaScript 中的 hashbang 注释模仿 <a href="https://en.wikipedia.org/wiki/Shebang_(Unix)">Unix 中的 shebangs</a>,用于指定适当的解释器运行文件。</p>
</div>
-<div class="blockIndicator warning">
-<p>尽管在 hashbang 注释之前的 <a href="https://en.wikipedia.org/wiki/Byte_order_mark">BOM</a> 在浏览器中能工作,但不建议在具有 hashbang 的脚本中使用 BOM。当您尝试在 Unix/Linux 中运行脚本时,有 BOM 将不工作。因此,如果要直接从 shell 运行脚本,请使用没有 BOM 的 UTF-8。</p>
+<div class="warning">
+<p><strong>警告:</strong>尽管在 hashbang 注释之前的 <a href="https://en.wikipedia.org/wiki/Byte_order_mark">BOM</a> 在浏览器中能工作,但不建议在具有 hashbang 的脚本中使用 BOM。当您尝试在 Unix/Linux 中运行脚本时,有 BOM 将不工作。因此,如果要直接从 shell 运行脚本,请使用没有 BOM 的 UTF-8。</p>
</div>
<p>您只能使用 <code>#!</code> 注释样式以指定 JavaScript 解释器。在所有其他情况下,只需使用 <code>//</code> 注释(或多行注释)。</p>
diff --git a/files/zh-cn/web/javascript/reference/operators/await/index.html b/files/zh-cn/web/javascript/reference/operators/await/index.html
index 4f0ea9b0c3..463f0e8ea1 100644
--- a/files/zh-cn/web/javascript/reference/operators/await/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/await/index.html
@@ -95,59 +95,7 @@ f3();</pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Edge</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{CompatChrome(55)}}</td>
- <td>{{CompatGeckoDesktop("52.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(42)}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td> 基本支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("52.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(42)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatChrome(55)}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="查看更多">查看更多</h2>
diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html
index 017d0d464c..28489e61a3 100644
--- a/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html
@@ -31,9 +31,9 @@ After: 10100000000000000110000000000001</pre>
<table class="standard-table">
<thead>
<tr>
- <th class="header" scope="col">a</th>
- <th class="header" scope="col">b</th>
- <th class="header" scope="col">a AND b</th>
+ <th scope="col">a</th>
+ <th scope="col">b</th>
+ <th scope="col">a AND b</th>
</tr>
</thead>
<tbody>
diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_not/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_not/index.html
index 46ffd369dd..8cd674a8cb 100644
--- a/files/zh-cn/web/javascript/reference/operators/bitwise_not/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/bitwise_not/index.html
@@ -38,8 +38,8 @@ After: 10100000000000000110000000000001</pre>
<table class="standard-table">
<thead>
<tr>
- <th class="header" scope="col">a</th>
- <th class="header" scope="col">NOT a</th>
+ <th scope="col">a</th>
+ <th scope="col">NOT a</th>
</tr>
</thead>
<tbody>
diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html
index 2f83d5d956..5c5810d152 100644
--- a/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html
@@ -30,9 +30,9 @@ After: 10100000000000000110000000000001</pre>
<table class="standard-table">
<thead>
<tr>
- <th class="header" scope="col">a</th>
- <th class="header" scope="col">b</th>
- <th class="header" scope="col">a OR b</th>
+ <th scope="col">a</th>
+ <th scope="col">b</th>
+ <th scope="col">a OR b</th>
</tr>
</thead>
<tbody>
diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html
index 1ec5d48f0a..9b670f4a58 100644
--- a/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html
@@ -30,9 +30,9 @@ After: 10100000000000000110000000000001</pre>
<table class="standard-table">
<thead>
<tr>
- <th class="header" scope="col">a</th>
- <th class="header" scope="col">b</th>
- <th class="header" scope="col">a XOR b</th>
+ <th scope="col">a</th>
+ <th scope="col">b</th>
+ <th scope="col">a XOR b</th>
</tr>
</thead>
<tbody>
diff --git a/files/zh-cn/web/javascript/reference/operators/comma_operator/index.html b/files/zh-cn/web/javascript/reference/operators/comma_operator/index.html
index cc7b2f83a8..1c9ca88054 100644
--- a/files/zh-cn/web/javascript/reference/operators/comma_operator/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/comma_operator/index.html
@@ -33,7 +33,7 @@ translation_of: Web/JavaScript/Reference/Operators/Comma_Operator
<p>假设 <code>a</code> 是一个二维数组,每一维度包含10个元素,则下面的代码使用逗号操作符一次递增/递减两个变量。需要注意的是,<code>var</code> 语句中的逗号<em><strong>不是</strong></em>逗号操作符,因为它不是存在于一个表达式中。尽管从实际效果来看,那个逗号同逗号运算符的表现很相似。但确切地说,它是 <code>var</code> 语句中的一个特殊符号,用于把多个变量声明结合成一个。下面的代码打印一个二维数组中斜线方向的元素:</p>
-<pre class="brush:js;highlight:[1]">for (var i = 0, j = 9; i &lt;= 9; i++, j--)
+<pre class="brush:js">for (var i = 0, j = 9; i &lt;= 9; i++, j--)
document.writeln("a[" + i + "][" + j + "] = " + a[i][j]);</pre>
<h3 id="处理后返回">处理后返回</h3>
diff --git a/files/zh-cn/web/javascript/reference/operators/conditional_operator/index.html b/files/zh-cn/web/javascript/reference/operators/conditional_operator/index.html
index cb3153c5ee..720dda3c68 100644
--- a/files/zh-cn/web/javascript/reference/operators/conditional_operator/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/conditional_operator/index.html
@@ -52,7 +52,7 @@ console.log(greeting({name: 'Alice'})); // "Howdy, Alice"
console.log(greeting(null)); // "Howdy, stranger"
</pre>
-<div class="blockIndicator note">
+<div class="note">
<p><strong>Note:</strong> <a href="/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining">The optional chaining operator</a> 设计用来处理这种使用场景。在本文档写成的时候 (2019.01),这个运算符还处于实验阶段并且没有实现。</p>
</div>
diff --git a/files/zh-cn/web/javascript/reference/operators/delete/index.html b/files/zh-cn/web/javascript/reference/operators/delete/index.html
index f8b4e02e0c..f061e72ba2 100644
--- a/files/zh-cn/web/javascript/reference/operators/delete/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/delete/index.html
@@ -131,8 +131,8 @@ console.log(delete variable2); // false
console.log(delete func); // false
</pre>
-<div class="blockIndicator note">
-<p>下文在英文原版中已删除</p>
+<div class="note">
+<p><strong>备注:</strong>下文在英文原版中已删除</p>
</div>
<p>任何使用var声明的变量都会被标记为不可设置的。在下面的例子中,salary是不可设置的以及不能被删除的。在非严格模式下,下面的delete操作将会返回false。</p>
diff --git a/files/zh-cn/web/javascript/reference/operators/destructuring_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/destructuring_assignment/index.html
index 93182a3253..05cc98f3a9 100644
--- a/files/zh-cn/web/javascript/reference/operators/destructuring_assignment/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/destructuring_assignment/index.html
@@ -188,7 +188,7 @@ console.log(q); // true
</pre>
<div class="note">
-<p><strong>注意</strong>:赋值语句周围的圆括号 <code>( ... )</code> 在使用对象字面量无声明解构赋值时是必须的。</p>
+<p><strong>备注:</strong>赋值语句周围的圆括号 <code>( ... )</code> 在使用对象字面量无声明解构赋值时是必须的。</p>
<p><code>{a, b} = {a: 1, b: 2}</code> 不是有效的独立语法,因为左边的 <code>{a, b}</code> 被认为是一个块而不是对象字面量。</p>
@@ -259,7 +259,7 @@ drawES2015Chart({
});</pre>
<div class="note">
-<p>在上面的 <strong><code>drawES2015Chart</code></strong> 的函数签名中,解构的左手边被分配给右手边的空对象字面值:<code>{size = 'big', cords = {x: 0, y: 0}, radius = 25} = {}</code>。你也可以在没有右侧分配的情况下编写函数。但是,如果你忽略了右边的赋值,那么函数会在被调用的时候查找至少一个被提供的参数,而在当前的形式下,你可以直接调用 <code><strong>drawES2015Chart()</strong></code> 而不提供任何参数。如果你希望能够在不提供任何参数的情况下调用该函数,则当前的设计非常有用,而另一种方法在您确保将对象传递给函数时非常有用。</p>
+<p><strong>备注:</strong>在上面的 <strong><code>drawES2015Chart</code></strong> 的函数签名中,解构的左手边被分配给右手边的空对象字面值:<code>{size = 'big', cords = {x: 0, y: 0}, radius = 25} = {}</code>。你也可以在没有右侧分配的情况下编写函数。但是,如果你忽略了右边的赋值,那么函数会在被调用的时候查找至少一个被提供的参数,而在当前的形式下,你可以直接调用 <code><strong>drawES2015Chart()</strong></code> 而不提供任何参数。如果你希望能够在不提供任何参数的情况下调用该函数,则当前的设计非常有用,而另一种方法在您确保将对象传递给函数时非常有用。</p>
</div>
<h3 id="解构嵌套对象和数组">解构嵌套对象和数组</h3>
diff --git a/files/zh-cn/web/javascript/reference/operators/function/index.html b/files/zh-cn/web/javascript/reference/operators/function/index.html
index c3c9bd85ea..5a69175075 100644
--- a/files/zh-cn/web/javascript/reference/operators/function/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/function/index.html
@@ -120,55 +120,7 @@ console.log(bar === baz); // false (errors because baz == undefined)</code>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="See_also">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/operators/index.html b/files/zh-cn/web/javascript/reference/operators/index.html
index 810ccb74cd..82ff728c29 100644
--- a/files/zh-cn/web/javascript/reference/operators/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/index.html
@@ -135,7 +135,9 @@ translation_of: Web/JavaScript/Reference/Operators
<dd>大于等于运算符。 </dd>
</dl>
-<div class="note"><strong>注意: =&gt;</strong> 不是运算符,而是{{jsxref("Functions/Arrow_functions", "箭头函数")}}的表示符。</div>
+<div class="note">
+<p><strong>备注:</strong> 不是运算符,而是{{jsxref("Functions/Arrow_functions", "箭头函数")}}的表示符。</p>
+</div>
<h3 id="相等运算符">相等运算符</h3>
@@ -241,11 +243,11 @@ translation_of: Web/JavaScript/Reference/Operators
<p>解构赋值允许你分配数组或者对象变量的属性通过使用规定的语法,其看起来和数组和对象字面量很相似。</p>
</dd>
<dt>
- <h3 id="逗号操作符">逗号操作符 {{jsxref("Operators/Comma_Operator", ",")}}</h3>
+ 逗号操作符 {{jsxref("Operators/Comma_Operator", ",")}}
</dt>
<dd>逗号操作符允许在一个判断状态中有多个表达式去进行运算并且最后返回最后一个表达式的值。</dd>
<dt>
- <h3 id="非标准化特性">非标准化特性 {{JSxRef("Operators/Expression_closures", "Expression closures", "", 1)}} {{non-standard_inline}}{{obsolete_inline(60)}}</h3>
+ 非标准化特性 {{JSxRef("Operators/Expression_closures", "Expression closures", "", 1)}} {{non-standard_inline}}{{obsolete_inline(60)}}
</dt>
<dd>闭包表达式语法是一个缩写简单的函数。</dd>
<dt>{{JSxRef("Operators/Legacy_generator_function", "Legacy generator function", "", 1)}} {{non-standard_inline}}{{obsolete_inline(58)}}</dt>
diff --git a/files/zh-cn/web/javascript/reference/operators/instanceof/index.html b/files/zh-cn/web/javascript/reference/operators/instanceof/index.html
index f6f1f188f8..bb93a7028e 100644
--- a/files/zh-cn/web/javascript/reference/operators/instanceof/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/instanceof/index.html
@@ -73,8 +73,12 @@ o3 instanceof C; // true 因为 C.prototype 现在在 o3 的原型链上
<p>比如检测一个 <code>Nodes</code> 在另一个窗口中是不是 <code>SVGElement</code>,你可以使用<code>myNode instanceof myNode.ownerDocument.defaultView.SVGElement</code></p>
-<div class="note"><strong>Mozilla开发者注意:</strong><br>
-在代码中使用 XPCOM <code>instanceof </code>有特殊影响: 如果查询接口成功执行后,<code>obj instanceof </code><em><code>xpcomInterface</code></em> (e.g. <code>Components.interfaces.nsIFile</code>) 调用<code>obj.QueryInterface(<em>xpcomInterface</em>)</code> 并且返回 <code>true</code> 。这种调用的副作用是在一次成功的 <code>instanceof</code> 测试后,你可以在 <code>obj</code> 上使用<code>xpcomInterface</code> 的属性。这与标准的 <code>JavaScript</code> 全局变量不同,即使 <code>obj</code> 来自不同的作用域,<code>obj instanceof xpcomInterface</code> 也可以按预期产生作用。</div>
+<div class="note">
+<p>
+ <strong>备注:</strong>
+ 在代码中使用 XPCOM <code>instanceof </code>有特殊影响: 如果查询接口成功执行后,<code>obj instanceof </code><em><code>xpcomInterface</code></em> (e.g. <code>Components.interfaces.nsIFile</code>) 调用<code>obj.QueryInterface(<em>xpcomInterface</em>)</code> 并且返回 <code>true</code> 。这种调用的副作用是在一次成功的 <code>instanceof</code> 测试后,你可以在 <code>obj</code> 上使用<code>xpcomInterface</code> 的属性。这与标准的 <code>JavaScript</code> 全局变量不同,即使 <code>obj</code> 来自不同的作用域,<code>obj instanceof xpcomInterface</code> 也可以按预期产生作用。
+</p>
+</div>
<h2 id="Examples">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/operators/logical_or/index.html b/files/zh-cn/web/javascript/reference/operators/logical_or/index.html
index d159e76866..69f521ca62 100644
--- a/files/zh-cn/web/javascript/reference/operators/logical_or/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/logical_or/index.html
@@ -73,8 +73,8 @@ o9 = false || '' // f || f returns ""
o10 = false || varObject // f || object returns varObject
</pre>
-<div class="blockIndicator note">
-<p><strong>Note:</strong> If you use this operator to provide a default value to some variable, be aware that any <em>falsy</em> value will not be used. If you only need to filter out {{jsxref("null")}} or {{jsxref("undefined")}}, consider using <a href="/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator">the nullish coalescing operator</a>.</p>
+<div class="note">
+<p><strong>备注:</strong> If you use this operator to provide a default value to some variable, be aware that any <em>falsy</em> value will not be used. If you only need to filter out {{jsxref("null")}} or {{jsxref("undefined")}}, consider using <a href="/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator">the nullish coalescing operator</a>.</p>
</div>
<h3 id="Conversion_rules_for_booleans">Conversion rules for booleans</h3>
diff --git a/files/zh-cn/web/javascript/reference/operators/new/index.html b/files/zh-cn/web/javascript/reference/operators/new/index.html
index e44beb9763..4959409c31 100644
--- a/files/zh-cn/web/javascript/reference/operators/new/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/new/index.html
@@ -83,7 +83,7 @@ console.log(car2.color) // original color
</pre>
<div class="note">
-<p>如果你没有使用 <code>new</code> 运算符, <strong>构造函数会像其他的常规函数一样被调用,</strong> 并<em>不会创建一个对象<strong>。</strong></em>在这种情况下, <code>this</code> 的指向也是不一样的。</p>
+<p><strong>备注:</strong>如果你没有使用 <code>new</code> 运算符, <strong>构造函数会像其他的常规函数一样被调用,</strong> 并<em>不会创建一个对象<strong>。</strong></em>在这种情况下, <code>this</code> 的指向也是不一样的。</p>
</div>
<h2 id="示例">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/operators/optional_chaining/index.html b/files/zh-cn/web/javascript/reference/operators/optional_chaining/index.html
index e765e6d66b..9c3f743c8a 100644
--- a/files/zh-cn/web/javascript/reference/operators/optional_chaining/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/optional_chaining/index.html
@@ -61,12 +61,12 @@ let nestedProp = ((temp === null || temp === undefined) ? undefined : temp.secon
<pre class="brush: js">let result = someInterface.customMethod?.();</pre>
-<div class="blockIndicator note">
-<p><strong>注意:</strong> 如果存在一个属性名且不是函数, 使用 <code>?.</code> 仍然会产生一个 {{JSxRef("TypeError")}} 异常 (<code>x.y</code><code> is not a function</code>).</p>
+<div class="note">
+<p><strong>备注:</strong>如果存在一个属性名且不是函数, 使用 <code>?.</code> 仍然会产生一个 {{JSxRef("TypeError")}} 异常 (<code>x.y</code><code> is not a function</code>).</p>
</div>
-<div class="blockIndicator note">
-<p><strong>注意:</strong> 如果 <code>someInterface</code> 自身是 <code>null</code> 或者 <code>undefined</code> ,异常 {{JSxRef("TypeError")}} 仍会被抛出 <code>someInterface is null</code> 如果你希望允许 <code>someInterface</code> 也为 <code>null</code> 或者 <code>undefined</code> ,那么你需要像这样写 <code>someInterface?.customMethod?.()</code></p>
+<div class="note">
+<p><strong>备注:</strong>如果 <code>someInterface</code> 自身是 <code>null</code> 或者 <code>undefined</code> ,异常 {{JSxRef("TypeError")}} 仍会被抛出 <code>someInterface is null</code> 如果你希望允许 <code>someInterface</code> 也为 <code>null</code> 或者 <code>undefined</code> ,那么你需要像这样写 <code>someInterface?.customMethod?.()</code></p>
</div>
<h4 id="处理可选的回调函数或者事件处理器">处理可选的回调函数或者事件处理器</h4>
diff --git a/files/zh-cn/web/javascript/reference/operators/property_accessors/index.html b/files/zh-cn/web/javascript/reference/operators/property_accessors/index.html
index c7c482256d..6d139479f9 100644
--- a/files/zh-cn/web/javascript/reference/operators/property_accessors/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/property_accessors/index.html
@@ -23,7 +23,7 @@ object['property']
<h2 id="描述">描述</h2>
-<p class="syntaxbox">我们可以将对象看做是一个<em>关联数组(</em>或者:<em>映射</em>、<em>字典</em>、<em>哈希表</em>、<em>查询表</em>)。这个数组中的键就是这个对象中属性的名称。通常,当我们提及一个对象的属性时,会对属性与方法之间做个对比。然而,属性与方法之间的区别并不大。一个方法就是一个可以被调用的属性而已,例如一个指向函数 <a href="/zh-CN/docs/Glossary/Function">Function</a> 实例的引用可以作为对象属性的值。</p>
+<p>我们可以将对象看做是一个<em>关联数组(</em>或者:<em>映射</em>、<em>字典</em>、<em>哈希表</em>、<em>查询表</em>)。这个数组中的键就是这个对象中属性的名称。通常,当我们提及一个对象的属性时,会对属性与方法之间做个对比。然而,属性与方法之间的区别并不大。一个方法就是一个可以被调用的属性而已,例如一个指向函数 <a href="/zh-CN/docs/Glossary/Function">Function</a> 实例的引用可以作为对象属性的值。</p>
<p>访问对象属性有两种方式:点号表示法和方括号表示法。</p>
diff --git a/files/zh-cn/web/javascript/reference/operators/this/index.html b/files/zh-cn/web/javascript/reference/operators/this/index.html
index 86616407d0..8e79b0d0d5 100644
--- a/files/zh-cn/web/javascript/reference/operators/this/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/this/index.html
@@ -42,8 +42,8 @@ this.b = "MDN";
console.log(window.b) // "MDN"
console.log(b) // "MDN"</pre>
-<div class="blockIndicator note">
-<p><strong>Note:</strong> 你可以使用 {{jsxref("globalThis")}} 获取全局对象,无论你的代码是否在当前上下文运行。</p>
+<div class="note">
+<p><strong>备注:</strong>你可以使用 {{jsxref("globalThis")}} 获取全局对象,无论你的代码是否在当前上下文运行。</p>
</div>
<h3 id="函数上下文">函数上下文</h3>
@@ -72,7 +72,9 @@ f1() === globalThis;
f2() === undefined; // true
</pre>
-<div class="note">在第二个例子中,<code>this</code> 应是 <a href="/zh-CN/docs/Glossary/undefined">undefined</a>,因为 <code>f2</code> 是被直接调用的,而不是作为对象的属性或方法调用的(如 <code>window.f2()</code>)。有一些浏览器最初在支持<a href="/zh-CN/docs/Web/JavaScript/Reference/Strict_mode">严格模式</a>时没有正确实现这个功能,于是它们错误地返回了<code>window</code>对象。</div>
+<div class="note">
+ <p><strong>备注:</strong>在第二个例子中,<code>this</code> 应是 <a href="/zh-CN/docs/Glossary/undefined">undefined</a>,因为 <code>f2</code> 是被直接调用的,而不是作为对象的属性或方法调用的(如 <code>window.f2()</code>)。有一些浏览器最初在支持<a href="/zh-CN/docs/Web/JavaScript/Reference/Strict_mode">严格模式</a>时没有正确实现这个功能,于是它们错误地返回了<code>window</code>对象。</p>
+</div>
<p>如果要想把 <code>this</code> 的值从一个环境传到另一个,就要用 <code><a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Function/call">call</a></code> 或者<code><a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Function/apply">apply</a></code> 方法,如下方的示例所示。</p>
@@ -94,8 +96,8 @@ f2() === undefined; // true
new Example(); // ['constructor', 'first', 'second']</pre>
-<div class="blockIndicator note">
-<p><strong>注意:</strong>静态方法不是 this 的属性,它们只是类自身的属性。</p>
+<div class="note">
+<p><strong>备注:</strong>静态方法不是 this 的属性,它们只是类自身的属性。</p>
</div>
<h3 id="派生类">派生类</h3>
@@ -104,7 +106,7 @@ new Example(); // ['constructor', 'first', 'second']</pre>
<pre>this = new Base();</pre>
-<div class="blockIndicator warning">
+<div class="warning">
<p><strong>警告:</strong>在调用 <code>super()</code> 之前引用 <code>this</code> 会抛出错误。</p>
</div>
@@ -199,7 +201,7 @@ var foo = (() =&gt; this);
console.log(foo() === globalObject); // true</pre>
<div class="note">
-<p>注意:如果将<code>this</code>传递给<code>call</code>、<code>bind</code>、或者<code>apply</code>来调用箭头函数,它将被忽略。不过你仍然可以为调用添加参数,不过第一个参数(<code>thisArg</code>)应该设置为<code>null</code>。</p>
+<p><strong>备注:</strong>如果将<code>this</code>传递给<code>call</code>、<code>bind</code>、或者<code>apply</code>来调用箭头函数,它将被忽略。不过你仍然可以为调用添加参数,不过第一个参数(<code>thisArg</code>)应该设置为<code>null</code>。</p>
</div>
<pre class="brush: js">// 接着上面的代码
@@ -328,7 +330,7 @@ console.log(o.average, o.sum); // logs 2, 6
<p>当一个函数用作构造函数时(使用<a href="/zh-CN/docs/Web/JavaScript/Reference/Operators/new">new</a>关键字),它的<code>this</code>被绑定到正在构造的新对象。</p>
<div class="note">
-<p>虽然构造函数返回的默认值是 <code>this</code> 所指的那个对象,但它仍可以手动返回其他的对象(如果返回值不是一个对象,则返回 <code>this</code> 对象)。</p>
+<p><strong>备注:</strong>虽然构造函数返回的默认值是 <code>this</code> 所指的那个对象,但它仍可以手动返回其他的对象(如果返回值不是一个对象,则返回 <code>this</code> 对象)。</p>
</div>
<pre class="brush: js">/*
@@ -443,8 +445,8 @@ bird.sayHi(); // Hello from Tweety
bird.sayBye = car.sayBye;
bird.sayBye(); // Bye from Ferrari</pre>
-<div class="blockIndicator note">
-<p><strong>注意:</strong>类内部总是严格模式。调用一个 <code>this</code> 值为 undefined 的方法会抛出错误。</p>
+<div class="note">
+<p><strong>备注:</strong>类内部总是严格模式。调用一个 <code>this</code> 值为 undefined 的方法会抛出错误。</p>
</div>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/javascript/reference/operators/typeof/index.html b/files/zh-cn/web/javascript/reference/operators/typeof/index.html
index ae77ab6261..1a149d5ed6 100644
--- a/files/zh-cn/web/javascript/reference/operators/typeof/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/typeof/index.html
@@ -27,9 +27,7 @@ typeof(operand)</em>
<p><strong><code>operand</code></strong></p>
-<dl>
- <dd>一个表示对象或{{Glossary("Primitive", "原始值")}}的表达式,其类型将被返回。</dd>
-</dl>
+<p>一个表示对象或{{Glossary("Primitive", "原始值")}}的表达式,其类型将被返回。</p>
<h2 id="描述">描述</h2>
@@ -268,8 +266,6 @@ class newClass{};</pre>
<pre class="brush: js">typeof alert === 'object'</pre>
</div>
-<div class="brush:js language-js line-number"></div>
-
<h2 id="See_also">相关链接</h2>
<ul>
diff --git a/files/zh-cn/web/javascript/reference/statements/async_function/index.html b/files/zh-cn/web/javascript/reference/statements/async_function/index.html
index ba79f6a5d2..5088f77130 100644
--- a/files/zh-cn/web/javascript/reference/statements/async_function/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/async_function/index.html
@@ -35,22 +35,21 @@ translation_of: Web/JavaScript/Reference/Statements/async_function
<dd>要传递给函数的参数的名称。</dd>
<dt><code>statements</code></dt>
<dd>包含函数主体的表达式。可以使用<code>await</code>机制。</dd>
- <dt>
- <h3 id="返回值">返回值</h3>
- </dt>
- <dd>一个{{jsxref("Promise")}},这个promise要么会通过一个由async函数返回的值被解决,要么会通过一个从async函数中抛出的(或其中没有被捕获到的)异常被拒绝。</dd>
</dl>
+<h3 id="返回值">返回值</h3>
+<p>一个{{jsxref("Promise")}},这个promise要么会通过一个由async函数返回的值被解决,要么会通过一个从async函数中抛出的(或其中没有被捕获到的)异常被拒绝。</p>
+
<h2 id="描述">描述</h2>
<p>async函数可能包含0个或者多个{{jsxref("Operators/await", "await")}}表达式。await表达式会暂停整个async函数的执行进程并出让其控制权,只有当其等待的基于promise的异步操作被兑现或被拒绝之后才会恢复进程。promise的解决值会被当作该await表达式的返回值。使用<code>async</code> / <code>await</code>关键字就可以在异步代码中使用普通的<code>try</code> / <code>catch</code>代码块。</p>
<div class="note">
-<p><code>await</code>关键字只在async函数内有效。如果你在async函数体之外使用它,就会抛出语法错误 {{jsxref("SyntaxError")}} 。</p>
+<p><strong>备注:</strong><code>await</code>关键字只在async函数内有效。如果你在async函数体之外使用它,就会抛出语法错误 {{jsxref("SyntaxError")}} 。</p>
</div>
<div class="note">
-<p><code>async</code>/<code>await</code>的目的为了简化使用基于promise的API时所需的语法。<code>async</code>/<code>await</code>的行为就好像搭配使用了生成器和promise。</p>
+<p><strong>备注:</strong><code>async</code>/<code>await</code>的目的为了简化使用基于promise的API时所需的语法。<code>async</code>/<code>await</code>的行为就好像搭配使用了生成器和promise。</p>
</div>
<p>async函数一定会返回一个promise对象。如果一个async函数的返回值看起来不是promise,那么它将会被隐式地包装在一个promise中。</p>
@@ -200,6 +199,7 @@ setTimeout(parallelPromise, 13000); // same as parallel
</pre>
<div class="note">
+<p><strong>备注:</strong></p>
<h4 id="await_and_parallelism并行"><code>await</code> and parallelism(并行)</h4>
<p>在<code>sequentialStart</code>中,程序在第一个<code>await</code>停留了2秒,然后又在第二个<code>await</code>停留了1秒。直到第一个计时器结束后,第二个计时器才被创建。程序需要3秒执行完毕。</p>
@@ -213,6 +213,7 @@ setTimeout(parallelPromise, 13000); // same as parallel
</div>
<div class="warning">
+<p><strong>警告:</strong></p>
<h4 id="asyncawait和Promisethen对比以及错误处理"><code>async</code>/<code>await和</code>Promise#then对比以及错误处理</h4>
<p>大多数async函数也可以使用Promises编写。但是,在错误处理方面,async函数更容易捕获异常错误</p>
@@ -255,8 +256,8 @@ setTimeout(parallelPromise, 13000); // same as parallel
<p>注意,在上述示例中,<code>return</code> 语句中没有 <code>await</code> 操作符,因为 <code>async function</code> 的返回值将被隐式地传递给 <code>{{jsxref("Promise.resolve")}}</code>。</p>
-<div class="blockIndicator note">
-<p><strong><code>return await promiseValue;</code> 与 <code>return promiseValue;的比较</code></strong></p>
+<div class="note">
+<p><strong>备注:</strong></p>
<p>返回值<code>隐式的传递给</code>{{jsxref("Promise.resolve")}},并不意味着<code>return await promiseValue;和return promiseValue;</code>在功能上相同。</p>
diff --git a/files/zh-cn/web/javascript/reference/statements/break/index.html b/files/zh-cn/web/javascript/reference/statements/break/index.html
index cce30700ab..0f61d23f95 100644
--- a/files/zh-cn/web/javascript/reference/statements/break/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/break/index.html
@@ -68,7 +68,7 @@ switch (food) {
<p>下面的代码中一起使用 <code>break</code> 语句和被标记的块语句。一个 <code>break</code> 语句必须内嵌在它引用的标记中。注意,<code>inner_block</code> 内嵌在 <code>outer_block</code> 中。</p>
-<pre class="brush:js;highlight:[1,3,5];">outer_block:{
+<pre class="brush:js;">outer_block:{
inner_block:{
console.log ('1');
@@ -84,7 +84,7 @@ switch (food) {
<p>下面的代码同样使用了 <code>break</code> 语句和被标记的块语句,但是产生了一个语法错误,因为它的 <code>break</code> 语句在 <code>block_1</code> 中,但是引用了 <code>block_2</code>。<code>break</code> 语句必须内嵌在它引用的标签中。</p>
-<pre class="brush:js;highlight:[1,3,6];">block_1:{
+<pre class="brush:js;">block_1:{
console.log ('1');
break block_2; // SyntaxError: label not found
}
diff --git a/files/zh-cn/web/javascript/reference/statements/class/index.html b/files/zh-cn/web/javascript/reference/statements/class/index.html
index b4b8afdbd6..f90b560270 100644
--- a/files/zh-cn/web/javascript/reference/statements/class/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/class/index.html
@@ -57,6 +57,7 @@ class Square extends Polygon {
}</pre>
<div class="warning">
+<p><strong>警告:</strong></p>
<h3 id="重复定义类">重复定义类</h3>
<p>重复声明一个类会引起类型错误。</p>
diff --git a/files/zh-cn/web/javascript/reference/statements/continue/index.html b/files/zh-cn/web/javascript/reference/statements/continue/index.html
index 9d8954fb84..d356fdde7f 100644
--- a/files/zh-cn/web/javascript/reference/statements/continue/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/continue/index.html
@@ -40,7 +40,7 @@ translation_of: Web/JavaScript/Reference/Statements/continue
<p>下述例子展示了一个在<code>i</code> 为 3时执行<code>continue</code> 语句的 {{jsxref("Statements/while", "while")}} 循环。因此,<code>n</code> 的值在几次迭代后分别为 1, 3, 7 和 12 .</p>
-<pre class="brush: js language-js">i = 0;
+<pre class="brush: js">i = 0;
n = 0;
while (i &lt; 5) {
i++;
@@ -58,7 +58,7 @@ while (i &lt; 5) {
<p>参考 {{jsxref("Statements/label", "label")}} 。</p>
-<pre class="brush: js language-js">var i = 0,
+<pre class="brush: js">var i = 0,
j = 8;
checkiandj: while (i &lt; 4) {
@@ -78,7 +78,7 @@ checkiandj: while (i &lt; 4) {
<p>输出:</p>
-<pre class="brush: js language-js">"i: 0"
+<pre class="brush: js">"i: 0"
// start checkj
"j: 8"
diff --git a/files/zh-cn/web/javascript/reference/statements/debugger/index.html b/files/zh-cn/web/javascript/reference/statements/debugger/index.html
index d87e77bfb8..dc8ca25936 100644
--- a/files/zh-cn/web/javascript/reference/statements/debugger/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/debugger/index.html
@@ -19,14 +19,14 @@ translation_of: Web/JavaScript/Reference/Statements/debugger
<p>下面的例子演示了一个包含 debugger 语句的函数,当函数被调用时,会尝试调用一个可用的调试器进行调试。</p>
-<pre class="brush:js language-js">function potentiallyBuggyCode() {
+<pre class="brush:js">function potentiallyBuggyCode() {
debugger;
// do potentially buggy stuff to examine, step through, etc.
}</pre>
<p>当 debugger 被调用时, 执行暂停在 debugger 语句的位置。就像在脚本源代码中的断点一样。</p>
-<p><a href="https://mdn.mozillademos.org/files/6963/Screen%20Shot%202014-02-07%20at%209.14.35%20AM.png"><img alt="Paused at a debugger statement." src="https://mdn.mozillademos.org/files/6963/Screen%20Shot%202014-02-07%20at%209.14.35%20AM.png" style="height: 371px; width: 700px;"></a></p>
+<p><a href="https://mdn.mozillademos.org/files/6963/Screen%20Shot%202014-02-07%20at%209.14.35%20AM.png"><img alt="Paused at a debugger statement." src="https://mdn.mozillademos.org/files/6963/Screen%20Shot%202014-02-07%20at%209.14.35%20AM.png"></a></p>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/javascript/reference/statements/do...while/index.html b/files/zh-cn/web/javascript/reference/statements/do...while/index.html
index 9f013042b9..dffd5e085b 100644
--- a/files/zh-cn/web/javascript/reference/statements/do...while/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/do...while/index.html
@@ -34,7 +34,7 @@ while (<em>condition</em>);
<h3 id="HTML_内容">HTML 内容</h3>
-<pre class="brush: html line-numbers language-html">&lt;div id="example"&gt;&lt;/div&gt;</pre>
+<pre class="brush: html">&lt;div id="example"&gt;&lt;/div&gt;</pre>
<h3 id="JavaScript_内容">JavaScript 内容</h3>
diff --git a/files/zh-cn/web/javascript/reference/statements/export/index.html b/files/zh-cn/web/javascript/reference/statements/export/index.html
index bcffc5aafc..8d1e1d3b3a 100644
--- a/files/zh-cn/web/javascript/reference/statements/export/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/export/index.html
@@ -117,8 +117,8 @@ export { function1, function2 };
<p>但这里的 <code>function1</code> 和 <code>function2</code> 在当前模块中变得不可用。</p>
-<div class="blockIndicator note">
-<p>注意:尽管与import等效,但以下语法在语法上无效:</p>
+<div class="note">
+<p><strong>备注:</strong>尽管与import等效,但以下语法在语法上无效:</p>
</div>
<pre class="brush: js">import DefaultExport from 'bar.js'; // 有效的
diff --git a/files/zh-cn/web/javascript/reference/statements/for-await...of/index.html b/files/zh-cn/web/javascript/reference/statements/for-await...of/index.html
index 597426a1fc..272bc49fb1 100644
--- a/files/zh-cn/web/javascript/reference/statements/for-await...of/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/for-await...of/index.html
@@ -20,8 +20,8 @@ translation_of: Web/JavaScript/Reference/Statements/for-await...of
<p>类似于 {{jsxref("Operators/await", "await")}} 运算符一样,该语句只能在一个{{jsxref("Statements/async_function", "async function", "异步函数", 1)}} 内部使用。</p>
-<div class="blockIndicator note">
-<p><code>for await...of</code> 不适用于不是异步可迭代的异步迭代器。</p>
+<div class="note">
+<p><strong>备注:</strong><code>for await...of</code> 不适用于不是异步可迭代的异步迭代器。</p>
</div>
diff --git a/files/zh-cn/web/javascript/reference/statements/for...in/index.html b/files/zh-cn/web/javascript/reference/statements/for...in/index.html
index 964a6d7a8d..ed54183732 100644
--- a/files/zh-cn/web/javascript/reference/statements/for...in/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/for...in/index.html
@@ -27,7 +27,7 @@ translation_of: Web/JavaScript/Reference/Statements/for...in
<h3 id="数组迭代和_for...in">数组迭代和 <code>for...in</code></h3>
<div class="note">
-<p><strong>提示:</strong><code>for...in</code>不应该用于迭代一个关注索引顺序的 {{jsxref("Array")}}。</p>
+<p><strong>备注:</strong><code>for...in</code>不应该用于迭代一个关注索引顺序的 {{jsxref("Array")}}。</p>
</div>
<h3 id="仅迭代自身的属性">仅迭代自身的属性</h3>
diff --git a/files/zh-cn/web/javascript/reference/statements/for/index.html b/files/zh-cn/web/javascript/reference/statements/for/index.html
index 0a904c3473..9e8eb05f51 100644
--- a/files/zh-cn/web/javascript/reference/statements/for/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/for/index.html
@@ -110,7 +110,7 @@ showOffsetPos('content');
// top: 153px;"</pre>
<div class="note">
-<p><strong>提示:</strong><strong>这里的分号是强制性的</strong>,是 JavaScript 中的少数几种强制分号的情况。如果没有分号,循环声明之后的行将被视为循环语句。</p>
+<p><strong>备注:</strong><strong>这里的分号是强制性的</strong>,是 JavaScript 中的少数几种强制分号的情况。如果没有分号,循环声明之后的行将被视为循环语句。</p>
</div>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/javascript/reference/statements/function/index.html b/files/zh-cn/web/javascript/reference/statements/function/index.html
index cb225706eb..13efc35a6d 100644
--- a/files/zh-cn/web/javascript/reference/statements/function/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/function/index.html
@@ -90,7 +90,7 @@ if (true) {
<p>JavaScript 中的<strong>函数声明</strong>被提升到了<strong>函数定义</strong>。你可以在函数声明之前使用该函数:</p>
-<pre class="brush: js language-js">hoisted(); // logs "foo"
+<pre class="brush: js">hoisted(); // logs "foo"
function hoisted() {
console.log('foo');
@@ -98,10 +98,10 @@ function hoisted() {
</pre>
<div class="note">
-<p>注意 :<strong>函数表达式</strong>{{jsxref("Operators/function", "function expressions")}} 不会被提升:</p>
+<p><strong>备注:</strong><strong>函数表达式</strong>{{jsxref("Operators/function", "function expressions")}} 不会被提升:</p>
</div>
-<pre class="brush: js language-js">notHoisted(); // TypeError: notHoisted is not a function
+<pre class="brush: js">notHoisted(); // TypeError: notHoisted is not a function
var notHoisted = function() {
console.log('bar');
@@ -114,7 +114,7 @@ var notHoisted = function() {
<p>下面的代码声明了一个函数,该函数返回了销售的总金额, 参数是产品a,b,c分别的销售的数量.</p>
-<pre class="brush: js language-js">function calc_sales(units_a, units_b, units_c) {functionfunctionfunctionfunctionfunctionfunctionfunctionfunctionfunctionfunctionfunction
+<pre class="brush: js">function calc_sales(units_a, units_b, units_c) {functionfunctionfunctionfunctionfunctionfunctionfunctionfunctionfunctionfunctionfunction
return units_a*79 + units_b * 129 + units_c * 699;
}</pre>
diff --git a/files/zh-cn/web/javascript/reference/statements/import/index.html b/files/zh-cn/web/javascript/reference/statements/import/index.html
index 8daa4187e2..4b59374f0a 100644
--- a/files/zh-cn/web/javascript/reference/statements/import/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/import/index.html
@@ -21,7 +21,7 @@ translation_of: Web/JavaScript/Reference/Statements/import
<p>语法</p>
-<pre class="syntaxbox brush: js">import <em>defaultExport</em> from "<em>module-name</em>";
+<pre class="brush: js">import <em>defaultExport</em> from "<em>module-name</em>";
import * as <em>name</em> from "<em>module-name</em>";
import { <em>export </em>} from "<em>module-name</em>";
import { <em>export</em> as <em>alias </em>} from "<em>module-name</em>";
diff --git a/files/zh-cn/web/javascript/reference/statements/return/index.html b/files/zh-cn/web/javascript/reference/statements/return/index.html
index 473f330f50..e5a09d5a84 100644
--- a/files/zh-cn/web/javascript/reference/statements/return/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/return/index.html
@@ -57,7 +57,7 @@ a + b;</pre>
<p>控制台会警告“unreachable code after return statement”。</p>
<div class="note">
-<p>从 Gecko 40 {{geckoRelease(40)}}开始,如果在一个 return 语句后发现无法访问的代码,控制台将会显示一个警告。</p>
+<p><strong>备注:</strong>从 Gecko 40 {{geckoRelease(40)}}开始,如果在一个 return 语句后发现无法访问的代码,控制台将会显示一个警告。</p>
</div>
<h2 id="Examples">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/statements/with/index.html b/files/zh-cn/web/javascript/reference/statements/with/index.html
index cca0407da3..93d4270d2e 100644
--- a/files/zh-cn/web/javascript/reference/statements/with/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/with/index.html
@@ -7,7 +7,9 @@ tags:
- Statement
translation_of: Web/JavaScript/Reference/Statements/with
---
-<div class="warning">不建议使用<code>with</code>语句,因为它可能是混淆错误和兼容性问题的根源。有关详细信息,请参阅下面“描述”一节中的“语意不明的弊端”部分。</div>
+<div class="warning">
+<p><strong>警告:</strong>不建议使用<code>with</code>语句,因为它可能是混淆错误和兼容性问题的根源。有关详细信息,请参阅下面“描述”一节中的“语意不明的弊端”部分。</p>
+</div>
<div>{{jsSidebar("Statements")}}</div>
@@ -31,7 +33,7 @@ translation_of: Web/JavaScript/Reference/Statements/with
<p>JavaScript查找某个未使用命名空间的变量时,会通过作用域链来查找,作用域链是跟执行代码的context或者包含这个变量的函数有关。'with'语句将某个对象添加到作用域链的顶部,如果在statement中有某个未使用命名空间的变量,跟作用域链中的某个属性同名,则这个变量将指向这个属性值。如果沒有同名的属性,则将拋出{{jsxref("ReferenceError")}}异常。</p>
-<div class="note">不推荐使用<code>with</code>,在 ECMAScript 5 <a href="/zh-CN/docs/Web/JavaScript/Reference/Strict_mode">严格模式</a>中该标签已被禁止。推荐的替代方案是声明一个临时变量来承载你所需要的属性。</div>
+<div class="note"><p><strong>备注:</strong>不推荐使用<code>with</code>,在 ECMAScript 5 <a href="/zh-CN/docs/Web/JavaScript/Reference/Strict_mode">严格模式</a>中该标签已被禁止。推荐的替代方案是声明一个临时变量来承载你所需要的属性。</p></div>
<h3 id="性能方面的利与弊">性能方面的利与弊</h3>
diff --git a/files/zh-cn/web/javascript/reference/strict_mode/index.html b/files/zh-cn/web/javascript/reference/strict_mode/index.html
index c4c8dbfb7d..21b45102ab 100644
--- a/files/zh-cn/web/javascript/reference/strict_mode/index.html
+++ b/files/zh-cn/web/javascript/reference/strict_mode/index.html
@@ -9,7 +9,9 @@ translation_of: Web/JavaScript/Reference/Strict_mode
---
<div>{{JsSidebar("More")}}</div>
-<div class="note">有时你会看到非严格模式,被称为“<strong><a href="https://developer.mozilla.org/docs/Glossary/Sloppy_mode" id="sloppyModeId333">sloppy mode</a></strong>”。这不是一个官方术语,但以防万一,你应该意识到这一点。</div>
+<div class="note">
+ <p><strong>备注:</strong>有时你会看到非严格模式,被称为“<strong><a href="https://developer.mozilla.org/docs/Glossary/Sloppy_mode">sloppy mode</a></strong>”。这不是一个官方术语,但以防万一,你应该意识到这一点。</p>
+</div>
<div><a class="external" href="http://www.ecma-international.org/publications/standards/Ecma-262.htm">ECMAScript 5</a>的<strong>严格模式</strong>是采用具有限制性JavaScript变体的一种方式,从而使代码隐式地脱离“马虎模式/稀松模式/懒散模式“(sloppy)模式。</div>
@@ -112,7 +114,7 @@ delete Object.prototype; // 抛出TypeError错误
<p>第四,在Gecko版本34之前,严格模式要求一个对象内的所有属性名在对象内必须唯一。正常模式下重名属性是允许的,最后一个重名的属性决定其属性值。因为只有最后一个属性起作用,当代码要去改变属性值而不是修改最后一个重名属性的时候,复制这个对象就产生一连串的bug。在严格模式下,重名属性被认为是语法错误:</p>
<div class="note">
-<p>这个问题在ECMAScript6中已经不复存在({{bug(1041128)}})。</p>
+<p><strong>备注:</strong>这个问题在ECMAScript6中已经不复存在({{bug(1041128)}})。</p>
</div>
<pre class="brush: js">"use strict";
diff --git a/files/zh-cn/web/javascript/reference/strict_mode/transitioning_to_strict_mode/index.html b/files/zh-cn/web/javascript/reference/strict_mode/transitioning_to_strict_mode/index.html
index 740a018fb9..c9675cff79 100644
--- a/files/zh-cn/web/javascript/reference/strict_mode/transitioning_to_strict_mode/index.html
+++ b/files/zh-cn/web/javascript/reference/strict_mode/transitioning_to_strict_mode/index.html
@@ -21,8 +21,8 @@ translation_of: Web/JavaScript/Reference/Strict_mode/Transitioning_to_strict_mod
<ul>
<li>八进制语法<code>:var n = 023和var s = "\047"</code></li>
- <li><a class="new" href="https://developer.mozilla.org/zh-CN/docs/JavaScript/Reference/Statements/with" title="/zh-CN/docs/JavaScript/Reference/Statements/with"><code>with</code></a>语句</li>
- <li>使用<a href="https://developer.mozilla.org/zh-CN/docs/JavaScript/Reference/Operators/delete" title="/zh-CN/docs/JavaScript/Reference/Operators/delete">delete</a>删除一个变量名(而不是属性名)<code>:delete myVariable</code></li>
+ <li><a href="https://developer.mozilla.org/zh-CN/docs/JavaScript/Reference/Statements/with" title="/zh-CN/docs/JavaScript/Reference/Statements/with"><code>with</code></a>语句</li>
+ <li>使用<a href="https://developer.mozilla.org/zh-CN/docs/JavaScript/Reference/Operators/delete">delete</a>删除一个变量名(而不是属性名)<code>:delete myVariable</code></li>
<li>使用<code>eval</code>或<code>arguments</code>作为变量名或函数名</li>
<li>使用未来保留字(也许会在ECMAScript 6中使用):<code>implements</code>, <code>interface</code>, <code>let</code>, <code>package</code>, <code>private</code>, <code>protected</code>, <code>public</code>, <code>static</code>,和<code>yield</code>作为变量名或函数名</li>
<li>在语句块中使用函数声明:<code>if(a&lt;b){ function f(){} }</code></li>
diff --git a/files/zh-cn/web/javascript/reference/template_literals/index.html b/files/zh-cn/web/javascript/reference/template_literals/index.html
index dbd08899c1..87655274ba 100644
--- a/files/zh-cn/web/javascript/reference/template_literals/index.html
+++ b/files/zh-cn/web/javascript/reference/template_literals/index.html
@@ -170,7 +170,7 @@ tag`string text line 1 \n string text line 2`;
<p>另外,使用{{jsxref("String.raw()")}} 方法创建原始字符串和使用默认模板函数和字符串连接创建是一样的。</p>
-<pre class="brush: js line-numbers language-js">var str = String.raw`Hi\n${2+3}!`;var`Hi\n${2+3}
+<pre class="brush: js">var str = String.raw`Hi\n${2+3}!`;var`Hi\n${2+3}
// "Hi\\n5!"
str.length;.
@@ -245,11 +245,7 @@ latex`\unicode`
<h2 id="浏览器兼容">浏览器兼容</h2>
-<div>
-
-
-<p>{{Compat("javascript.grammar.template_literals")}}</p>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/typed_arrays/index.html b/files/zh-cn/web/javascript/typed_arrays/index.html
index 49fd7c9814..0fbe78843d 100644
--- a/files/zh-cn/web/javascript/typed_arrays/index.html
+++ b/files/zh-cn/web/javascript/typed_arrays/index.html
@@ -116,7 +116,7 @@ var amountDueView = new Float32Array(buffer, 20, 1);</pre>
<p>现在你就可以通过<code>amountDueView[0]</code>的方式访问数量。</p>
<div class="note">
-<p><strong>提示:</strong>C语言结构体的<a href="http://en.wikipedia.org/wiki/Data_structure_alignment" title="http://en.wikipedia.org/wiki/Data_structure_alignment">数据对齐</a>与平台相关。因此需要防范和考虑不同平台的字节填充对齐。</p>
+<p><strong>备注:</strong>C语言结构体的<a href="http://en.wikipedia.org/wiki/Data_structure_alignment" title="http://en.wikipedia.org/wiki/Data_structure_alignment">数据对齐</a>与平台相关。因此需要防范和考虑不同平台的字节填充对齐。</p>
</div>
<h3 id="转换为普通数组">转换为普通数组</h3>
@@ -157,7 +157,7 @@ normalArray.constructor === Array;</pre>
<h2 id="浏览器兼容">浏览器兼容</h2>
-<p>{{Compat("javascript.builtins.TypedArray")}}</p>
+{{Compat}}
<h2 id="了解更多">了解更多</h2>
diff --git a/files/zh-tw/web/javascript/guide/functions/index.html b/files/zh-tw/web/javascript/guide/functions/index.html
index af19983b6f..b2b28a2cff 100644
--- a/files/zh-tw/web/javascript/guide/functions/index.html
+++ b/files/zh-tw/web/javascript/guide/functions/index.html
@@ -109,7 +109,7 @@ console.log(factorial(3));
<p>函式必須在呼叫區塊的可視範圍內,但函數也可以宣告在使用處的下面,如下列範例:</p>
-<pre>console.log(square(5));
+<pre class="brush: js">console.log(square(5));
/* ... */
function square(n){return n*n}
</pre>