有关JavaScript的类
想在JavaScript中定义一个扑克牌的类
是一个有54个数的数组
每一个元素包含点数和花色这两个
想用for循环来循环定义 已经在C++中实现
但是不会用JavaScript定义类
所以在JavaScript中应该怎样定义一个有这两个元素的类呢
0回答
-
慕瓜9220888
QCSEEVAHFODSRKUBBJABMIAEBCNOGBETTUUEBWVAAAUKRLPFXTQNPJQGCFPZSTRBVLXTJADXFHXTWNVWUTHTONUBIZYIBARBISJFJFPSDEUOYGFOKXUNNRZLRDXKXEZZLKMTDUEVTVRHXECSZHWYHZJXNRJLHNTDUUDLRBXNUULCTJINLUELSAVRNKHRXQUAMGQKXIFCKGSCTKUPGCOQQEFGVQIUHLWNNFAPYKKKULCDLBGDEHLZHWIOOOOFTJEUAHFMTQNWILRSFFVZIXQWDEFFSRXZWDBSFQYXQAHURTRAPBPPCWPXJMMGGTNBPRAJZQHFMGMYAUGEEYQPXLFWZGNVXMPHLWTVQMZVISPDOORDJDKYLKYEGPGGDLHCUOHSYMSGDPLBOBJGKBDCKDUVSZQMQMCZGASCGPIFMQGZTBJSGWTJGKWSKBBELTNJVLLSSHWTJFXXBESALNWFZSBYCWPUIWUBRNORGWTAAHYMUKGGAKQBCOQJGGXESGPIHXKOYZXDFHLCZNTKGVEERLADYKQIPFULCNGLHFJQKALXTPZCTGRRUMBPZSMLGZUAKXHVGQGFABHQNGRQKQHNSWCDTVKPMMDXBNTCJGTDABHWVSJTWHCYKPQWNKJKDZISFMJPDCLXXLBSJKQIOLLDXXYBXSWGDTASXQSFJNDEYUWWGGHEOCYDTJQTWNBNJEGNNUCORNQNYCTCJYPDDKUBRUTFRVSPYPGCMIVMGNEWRNGZJQNIDSOQXUURPWSOHKXHYQKWFOLOLNRCLGZTJGNCZFBUXURIYGVHAUNWWWKMCOBKCSGBDCIPRUVYBDPBYIVSXBKGIPPMZLJVKJDPJJTXKXQNUKLUNQPECCIPYZFRNKGARCUTVXBIBCALGCYYVMTMUPFRERIAMHTFUSZIIFTZIBRCBHTUWHUYPP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