Perl类属性继承

时间:2018-05-19 17:09:50

标签: perl oop inheritance

我有class属性,e。例如,某些基类中创建的对象的计数器,

package A;
our $counter = Counter->new; # not just a counter in fact, so initialization code should be inherited by descendants as well

sub new {
    $counter++;
    bless {}
}
sub get_counter {
    $counter
}

package B;
use base 'A';

package main;
B->get_counter();

我希望包B拥有自己的这个类属性的副本(例如,仅计算B类的对象),并且包A中的所有继承方法都应该处理此副本。在普通perl和Moo / Moose中实现这个的正确方法是什么?好像MooX :: ClassAttribute不能被继承。 发现一个丑陋的解决方案是在每个后​​代重复属性初始化代码,并在祖先的方法中使用符号解除引用,如$ {“$ {class} :: counter”},以使用实际包名访问此属性。但似乎应该有更优雅的方式。

1 个答案:

答案 0 :(得分:3)

默认的Perl对象模型没有类属性的概念。并且没有像“创建新子类时运行此代码”那样的钩子。

相反,基类可以使用类名作为键来维护计数器的哈希:

new()

这将在创建子类的实例时创建一个新计数器。请注意,方法的第一个参数是类名或对象实例。我们需要在get_counter()中使用它作为哈希键。在parent我已经写过这样的方式,可以在类和对象上调用该方法达到相同的效果。

类似的技术被称为由内而外的对象,其中存储对象字段在类所拥有的哈希中,因此对象本身不包含任何数据。

(为什么base代替parentbase模块只进行继承,而fields也与<html><head></head><body><div class="sidebar"> <div id="curr_list"> <div class="inner"> <form method="get" action="https://www.bestchange.com/index.php"> <fieldset> <dl class="give"> <dt>Give</dt> <dd><span class="select" id="custom_select_from">Perfect Money USD</span><select class="styled" name="from" id="currency_lc"><optgroup label="Electronic currencies" class="bgw"><option value="40" lang="14" selected="selected" style="color: rgb(34, 34, 34);">Perfect Money USD</option><option value="41" lang="14" style="color: rgb(34, 34, 34);">Perfect Money EUR</option><option value="128" lang="14" style="color: rgb(34, 34, 34);">Perfect Money BTC</option><option value="156" lang="14" style="color: rgb(34, 34, 34);">PM e-Voucher USD</option><option value="45" lang="15" style="color: rgb(170, 170, 170);">PayPal USD</option><option value="80" lang="15" style="color: rgb(170, 170, 170);">PayPal EUR</option><option value="164" lang="15" style="color: rgb(170, 170, 170);">PayPal GBP</option><option value="98" lang="15" style="color: rgb(170, 170, 170);">PayPal RUB</option><option value="93" lang="36" style="color: rgb(170, 170, 170);">Bitcoin (BTC)</option><option value="172" lang="77" style="color: rgb(34, 34, 34);">Bitcoin Cash (BCH)</option><option value="184" lang="87" style="color: rgb(34, 34, 34);">Bitcoin Gold (BTG)</option><option value="139" lang="57" style="color: rgb(34, 34, 34);">Ethereum (ETH)</option><option value="160" lang="71" style="color: rgb(34, 34, 34);">Ether Classic (ETC)</option><option value="99" lang="40" style="color: rgb(34, 34, 34);">Litecoin (LTC)</option><option value="161" lang="72" style="color: rgb(34, 34, 34);">Ripple (XRP)</option><option value="149" lang="65" style="color: rgb(34, 34, 34);">Monero (XMR)</option><option value="115" lang="51" style="color: rgb(34, 34, 34);">Dogecoin (DOGE)</option><option value="137" lang="55" style="color: rgb(34, 34, 34);">Namecoin (NMC)</option><option value="138" lang="56" style="color: rgb(34, 34, 34);">Peercoin (PPC)</option><option value="140" lang="58" style="color: rgb(34, 34, 34);">Dash (DASH)</option><option value="162" lang="73" style="color: rgb(34, 34, 34);">Zcash (ZEC)</option><option value="163" lang="74" style="color: rgb(34, 34, 34);">Tether (USDT)</option><option value="173" lang="78" style="color: rgb(34, 34, 34);">NEM (XEM)</option><option value="174" lang="79" style="color: rgb(34, 34, 34);">Augur (REP)</option><option value="177" lang="80" style="color: rgb(34, 34, 34);">NEO (NEO)</option><option value="178" lang="81" style="color: rgb(170, 170, 170);">EOS (EOS)</option><option value="179" lang="82" style="color: rgb(170, 170, 170);">IOTA (MIOTA)</option><option value="180" lang="83" style="color: rgb(34, 34, 34);">Lisk (LSK)</option><option value="181" lang="84" style="color: rgb(170, 170, 170);">Cardano (ADA)</option><option value="182" lang="85" style="color: rgb(170, 170, 170);">Stellar (XLM)</option><option value="183" lang="86" style="color: rgb(170, 170, 170);">Bytecoin (BCN)</option><option value="185" lang="88" style="color: rgb(170, 170, 170);">TRON (TRX)</option><option value="133" lang="90" style="color: rgb(170, 170, 170);">Waves (WAVES)</option><option value="48" lang="6" style="color: rgb(170, 170, 170);">OmiseGO (OMG)</option><option value="104" lang="44" style="color: rgb(34, 34, 34);">WEX USD</option><option value="119" lang="44" style="color: rgb(34, 34, 34);">WEX EUR</option><option value="112" lang="44" style="color: rgb(34, 34, 34);">WEX RUB</option><option value="176" lang="44" style="color: rgb(170, 170, 170);">WEX BTC</option><option value="129" lang="52" style="color: rgb(34, 34, 34);">Exmo USD</option><option value="131" lang="52" style="color: rgb(34, 34, 34);">Exmo EUR</option><option value="130" lang="52" style="color: rgb(34, 34, 34);">Exmo RUB</option><option value="169" lang="52" style="color: rgb(34, 34, 34);">Exmo UAH</option><option value="186" lang="52" style="color: rgb(170, 170, 170);">Exmo BTC</option><option value="146" lang="61" style="color: rgb(34, 34, 34);">Cryptocheck</option><option value="7" lang="5" style="color: rgb(34, 34, 34);">eCoin</option><option value="82" lang="30" style="color: rgb(34, 34, 34);">LiveCoin</option><option value="83" lang="31" style="color: rgb(170, 170, 170);">C-Cex</option><option value="148" lang="63" style="color: rgb(34, 34, 34);">Cryptoexchange USD</option><option value="153" lang="63" style="color: rgb(34, 34, 34);">Cryptoexchange EUR</option><option value="44" lang="8" style="color: rgb(34, 34, 34);">Skrill USD</option><option value="123" lang="8" style="color: rgb(170, 170, 170);">Skrill EUR</option><option value="66" lang="20" style="color: rgb(170, 170, 170);">Payza USD</option><option value="124" lang="20" style="color: rgb(170, 170, 170);">Payza EUR</option><option value="1" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMZ</option><option value="3" lang="1" style="color: rgb(170, 170, 170);">WebMoney WME</option><option value="43" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMG</option><option value="96" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMX</option><option value="2" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMR</option><option value="20" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMU</option><option value="18" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMB</option><option value="47" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMK</option><option value="87" lang="59" style="color: rgb(34, 34, 34);">Paymer USD</option><option value="171" lang="59" style="color: rgb(170, 170, 170);">Paymer EUR</option><option value="144" lang="59" style="color: rgb(34, 34, 34);">Paymer RUB</option><option value="19" lang="59" style="color: rgb(170, 170, 170);">Paymer UAH</option><option value="108" lang="48" style="color: rgb(34, 34, 34);">Payeer USD</option><option value="122" lang="48" style="color: rgb(34, 34, 34);">Payeer EUR</option><option value="117" lang="48" style="color: rgb(34, 34, 34);">Payeer RUB</option><option value="74" lang="25" style="color: rgb(170, 170, 170);">Paxum</option><option value="72" lang="10" style="color: rgb(34, 34, 34);">Neteller USD</option><option value="136" lang="10" style="color: rgb(170, 170, 170);">Neteller EUR</option><option value="88" lang="34" style="color: rgb(34, 34, 34);">Advanced Cash USD</option><option value="120" lang="34" style="color: rgb(34, 34, 34);">Advanced Cash EUR</option><option value="121" lang="34" style="color: rgb(34, 34, 34);">Advanced Cash RUB</option><option value="142" lang="34" style="color: rgb(34, 34, 34);">Advanced Cash UAH</option><option value="134" lang="54" style="color: rgb(34, 34, 34);">MoneyPolo USD</option><option value="135" lang="54" style="color: rgb(34, 34, 34);">MoneyPolo EUR</option><option value="152" lang="67" style="color: rgb(170, 170, 170);">PaySera</option><option value="154" lang="68" style="color: rgb(34, 34, 34);">Epay USD</option><option value="97" lang="68" style="color: rgb(34, 34, 34);">Epay EUR</option><option value="165" lang="75" style="color: rgb(170, 170, 170);">Alipay</option><option value="73" lang="24" style="color: rgb(34, 34, 34);">PaySafeCard</option><option value="145" lang="60" style="color: rgb(34, 34, 34);">Capitalist USD</option><option value="85" lang="60" style="color: rgb(34, 34, 34);">Capitalist RUB</option><option value="147" lang="62" style="color: rgb(34, 34, 34);">Epese</option><option value="76" lang="28" style="color: rgb(34, 34, 34);">SolidTrust Pay</option><option value="61" lang="17" style="color: rgb(170, 170, 170);">W1 USD</option><option value="170" lang="17" style="color: rgb(170, 170, 170);">W1 RUB</option><option value="46" lang="17" style="color: rgb(170, 170, 170);">W1 UAH</option><option value="175" lang="39" style="color: rgb(170, 170, 170);">ePayments</option><option value="109" lang="49" style="color: rgb(34, 34, 34);">NixMoney USD</option><option value="125" lang="49" style="color: rgb(34, 34, 34);">NixMoney EUR</option><option value="6" lang="4" style="color: rgb(34, 34, 34);">Yandex.Money</option><option value="110" lang="18" style="color: rgb(34, 34, 34);">QIWI USD</option><option value="126" lang="18" style="color: rgb(170, 170, 170);">QIWI EUR</option><option value="63" lang="18" style="color: rgb(34, 34, 34);">QIWI RUB</option><option value="127" lang="18" style="color: rgb(34, 34, 34);">QIWI KZT</option><option value="50" lang="9" style="color: rgb(170, 170, 170);">LiqPay</option><option value="155" lang="69" style="color: rgb(34, 34, 34);">E-kzt</option><option value="11" lang="26" style="color: rgb(34, 34, 34);">Idram</option><option value="49" lang="64" style="color: rgb(170, 170, 170);">Mobile Wallet</option></optgroup><optgroup label="Online banking" class="bgb"><option value="58" lang="13" style="color: rgb(34, 34, 34);">Visa/MasterCard USD</option><option value="65" lang="13" style="color: rgb(34, 34, 34);">Visa/MasterCard EUR</option><option value="59" lang="13" style="color: rgb(34, 34, 34);">Visa/MasterCard RUB</option><option value="60" lang="13" style="color: rgb(34, 34, 34);">Visa/MasterCard UAH</option><option value="54" lang="13" style="color: rgb(170, 170, 170);">Visa/MasterCard BYN</option><option value="111" lang="13" style="color: rgb(34, 34, 34);">Visa/MasterCard KZT</option><option value="69" lang="23" style="color: rgb(34, 34, 34);">Wire USD</option><option value="70" lang="23" style="color: rgb(34, 34, 34);">Wire EUR</option><option value="81" lang="23" style="color: rgb(170, 170, 170);">Wire GBP</option><option value="71" lang="23" style="color: rgb(34, 34, 34);">Wire RUB</option><option value="102" lang="23" style="color: rgb(170, 170, 170);">Wire UAH</option><option value="187" lang="23" style="color: rgb(170, 170, 170);">Wire BYN</option><option value="113" lang="23" style="color: rgb(34, 34, 34);">Wire KZT</option><option value="166" lang="23" style="color: rgb(170, 170, 170);">Wire CNY</option><option value="167" lang="23" style="color: rgb(34, 34, 34);">Wire THB</option><option value="100" lang="41" style="color: rgb(34, 34, 34);">UnionPay</option><option value="42" lang="7" style="color: rgb(34, 34, 34);">Sberbank</option><option value="51" lang="11" style="color: rgb(34, 34, 34);">VTB24</option><option value="52" lang="12" style="color: rgb(34, 34, 34);">Alfa-Bank</option><option value="143" lang="12" style="color: rgb(34, 34, 34);">Alfa cash-in USD</option><option value="62" lang="12" style="color: rgb(34, 34, 34);">Alfa cash-in RUB</option><option value="64" lang="19" style="color: rgb(34, 34, 34);">Russian Standart</option><option value="79" lang="33" style="color: rgb(170, 170, 170);">Avangard</option><option value="105" lang="45" style="color: rgb(34, 34, 34);">Tinkoff</option><option value="53" lang="16" style="color: rgb(34, 34, 34);">Promsvyazbank</option><option value="95" lang="38" style="color: rgb(34, 34, 34);">Gazprombank</option><option value="57" lang="37" style="color: rgb(34, 34, 34);">Kukuruza</option><option value="157" lang="70" style="color: rgb(170, 170, 170);">Raiffeisen</option><option value="132" lang="53" style="color: rgb(34, 34, 34);">RNCB</option><option value="55" lang="3" style="color: rgb(170, 170, 170);">Privat 24 USD</option><option value="56" lang="3" style="color: rgb(34, 34, 34);">Privat 24 UAH</option><option value="158" lang="70" style="color: rgb(34, 34, 34);">Raiffeisen UAH</option><option value="68" lang="22" style="color: rgb(34, 34, 34);">Oschadbank</option><option value="118" lang="42" style="color: rgb(34, 34, 34);">PUMB</option><option value="84" lang="89" style="color: rgb(34, 34, 34);">Monobank</option><option value="4" lang="2" style="color: rgb(170, 170, 170);">Belarusbank</option><option value="103" lang="43" style="color: rgb(34, 34, 34);">Kazkombank</option><option value="90" lang="50" style="color: rgb(34, 34, 34);">HalykBank</option><option value="114" lang="7" style="color: rgb(34, 34, 34);">Sberbank KZT</option><option value="75" lang="27" style="color: rgb(34, 34, 34);">ForteBank</option><option value="168" lang="76" style="color: rgb(170, 170, 170);">Astana Bank</option><option value="159" lang="23" style="color: rgb(170, 170, 170);">SP or LLC account</option></optgroup><optgroup label="Money transfers" class="bgw"><option value="67" lang="21" style="color: rgb(34, 34, 34);">Western Union USD</option><option value="15" lang="21" style="color: rgb(34, 34, 34);">Western Union EUR</option><option value="78" lang="29" style="color: rgb(34, 34, 34);">MoneyGram USD</option><option value="77" lang="29" style="color: rgb(34, 34, 34);">MoneyGram EUR</option><option value="150" lang="66" style="color: rgb(34, 34, 34);">Ria USD</option><option value="151" lang="66" style="color: rgb(34, 34, 34);">Ria EUR</option><option value="101" lang="46" style="color: rgb(34, 34, 34);">Contact USD</option><option value="86" lang="32" style="color: rgb(34, 34, 34);">UniStream</option><option value="106" lang="46" style="color: rgb(34, 34, 34);">Contact RUB</option><option value="116" lang="47" style="color: rgb(34, 34, 34);">Golden Crown USD</option><option value="107" lang="47" style="color: rgb(34, 34, 34);">Golden Crown RUB</option></optgroup><optgroup label="Cash" class="bgb"><option value="89" lang="35" style="color: rgb(34, 34, 34);">Cash USD</option><option value="141" lang="35" style="color: rgb(170, 170, 170);">Cash EUR</option><option value="91" lang="35" style="color: rgb(34, 34, 34);">Cash RUB</option><option value="92" lang="35" style="color: rgb(34, 34, 34);">Cash UAH</option><option value="94" lang="35" style="color: rgb(170, 170, 170);">Cash KZT</option></optgroup></select></dd> </dl> <dl class="get"> <dt>Get</dt> <dd><span class="select" id="custom_select_to">Bitcoin (BTC)</span><select class="styled" name="to" id="currency_rc"><optgroup label="Electronic currencies" class="bgw"><option value="40" lang="14" style="color: rgb(34, 34, 34);">Perfect Money USD</option><option value="41" lang="14" style="color: rgb(34, 34, 34);">Perfect Money EUR</option><option value="128" lang="14" style="color: rgb(34, 34, 34);">Perfect Money BTC</option><option value="156" lang="14" style="color: rgb(34, 34, 34);">PM e-Voucher USD</option><option value="45" lang="15" style="color: rgb(34, 34, 34);">PayPal USD</option><option value="80" lang="15" style="color: rgb(34, 34, 34);">PayPal EUR</option><option value="164" lang="15" style="color: rgb(170, 170, 170);">PayPal GBP</option><option value="98" lang="15" style="color: rgb(34, 34, 34);">PayPal RUB</option><option value="93" lang="36" selected="selected" style="color: rgb(34, 34, 34);">Bitcoin (BTC)</option><option value="172" lang="77" style="color: rgb(34, 34, 34);">Bitcoin Cash (BCH)</option><option value="184" lang="87" style="color: rgb(34, 34, 34);">Bitcoin Gold (BTG)</option><option value="139" lang="57" style="color: rgb(34, 34, 34);">Ethereum (ETH)</option><option value="160" lang="71" style="color: rgb(34, 34, 34);">Ether Classic (ETC)</option><option value="99" lang="40" style="color: rgb(34, 34, 34);">Litecoin (LTC)</option><option value="161" lang="72" style="color: rgb(34, 34, 34);">Ripple (XRP)</option><option value="149" lang="65" style="color: rgb(34, 34, 34);">Monero (XMR)</option><option value="115" lang="51" style="color: rgb(34, 34, 34);">Dogecoin (DOGE)</option><option value="137" lang="55" style="color: rgb(34, 34, 34);">Namecoin (NMC)</option><option value="138" lang="56" style="color: rgb(34, 34, 34);">Peercoin (PPC)</option><option value="140" lang="58" style="color: rgb(34, 34, 34);">Dash (DASH)</option><option value="162" lang="73" style="color: rgb(34, 34, 34);">Zcash (ZEC)</option><option value="163" lang="74" style="color: rgb(34, 34, 34);">Tether (USDT)</option><option value="173" lang="78" style="color: rgb(34, 34, 34);">NEM (XEM)</option><option value="174" lang="79" style="color: rgb(34, 34, 34);">Augur (REP)</option><option value="177" lang="80" style="color: rgb(34, 34, 34);">NEO (NEO)</option><option value="178" lang="81" style="color: rgb(34, 34, 34);">EOS (EOS)</option><option value="179" lang="82" style="color: rgb(34, 34, 34);">IOTA (MIOTA)</option><option value="180" lang="83" style="color: rgb(34, 34, 34);">Lisk (LSK)</option><option value="181" lang="84" style="color: rgb(34, 34, 34);">Cardano (ADA)</option><option value="182" lang="85" style="color: rgb(170, 170, 170);">Stellar (XLM)</option><option value="183" lang="86" style="color: rgb(170, 170, 170);">Bytecoin (BCN)</option><option value="185" lang="88" style="color: rgb(34, 34, 34);">TRON (TRX)</option><option value="133" lang="90" style="color: rgb(170, 170, 170);">Waves (WAVES)</option><option value="48" lang="6" style="color: rgb(34, 34, 34);">OmiseGO (OMG)</option><option value="104" lang="44" style="color: rgb(34, 34, 34);">WEX USD</option><option value="119" lang="44" style="color: rgb(34, 34, 34);">WEX EUR</option><option value="112" lang="44" style="color: rgb(34, 34, 34);">WEX RUB</option><option value="176" lang="44" style="color: rgb(34, 34, 34);">WEX BTC</option><option value="129" lang="52" style="color: rgb(34, 34, 34);">Exmo USD</option><option value="131" lang="52" style="color: rgb(34, 34, 34);">Exmo EUR</option><option value="130" lang="52" style="color: rgb(34, 34, 34);">Exmo RUB</option><option value="169" lang="52" style="color: rgb(34, 34, 34);">Exmo UAH</option><option value="186" lang="52" style="color: rgb(34, 34, 34);">Exmo BTC</option><option value="146" lang="61" style="color: rgb(34, 34, 34);">Cryptocheck</option><option value="7" lang="5" style="color: rgb(34, 34, 34);">eCoin</option><option value="82" lang="30" style="color: rgb(34, 34, 34);">LiveCoin</option><option value="83" lang="31" style="color: rgb(34, 34, 34);">C-Cex</option><option value="148" lang="63" style="color: rgb(170, 170, 170);">Cryptoexchange USD</option><option value="153" lang="63" style="color: rgb(170, 170, 170);">Cryptoexchange EUR</option><option value="44" lang="8" style="color: rgb(34, 34, 34);">Skrill USD</option><option value="123" lang="8" style="color: rgb(34, 34, 34);">Skrill EUR</option><option value="66" lang="20" style="color: rgb(170, 170, 170);">Payza USD</option><option value="124" lang="20" style="color: rgb(170, 170, 170);">Payza EUR</option><option value="1" lang="1" style="color: rgb(34, 34, 34);">WebMoney WMZ</option><option value="3" lang="1" style="color: rgb(170, 170, 170);">WebMoney WME</option><option value="43" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMG</option><option value="96" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMX</option><option value="2" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMR</option><option value="20" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMU</option><option value="18" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMB</option><option value="47" lang="1" style="color: rgb(170, 170, 170);">WebMoney WMK</option><option value="87" lang="59" style="color: rgb(34, 34, 34);">Paymer USD</option><option value="171" lang="59" style="color: rgb(170, 170, 170);">Paymer EUR</option><option value="144" lang="59" style="color: rgb(34, 34, 34);">Paymer RUB</option><option value="19" lang="59" style="color: rgb(170, 170, 170);">Paymer UAH</option><option value="108" lang="48" style="color: rgb(34, 34, 34);">Payeer USD</option><option value="122" lang="48" style="color: rgb(34, 34, 34);">Payeer EUR</option><option value="117" lang="48" style="color: rgb(34, 34, 34);">Payeer RUB</option><option value="74" lang="25" style="color: rgb(170, 170, 170);">Paxum</option><option value="72" lang="10" style="color: rgb(34, 34, 34);">Neteller USD</option><option value="136" lang="10" style="color: rgb(170, 170, 170);">Neteller EUR</option><option value="88" lang="34" style="color: rgb(34, 34, 34);">Advanced Cash USD</option><option value="120" lang="34" style="color: rgb(34, 34, 34);">Advanced Cash EUR</option><option value="121" lang="34" style="color: rgb(34, 34, 34);">Advanced Cash RUB</option><option value="142" lang="34" style="color: rgb(170, 170, 170);">Advanced Cash UAH</option><option value="134" lang="54" style="color: rgb(34, 34, 34);">MoneyPolo USD</option><option value="135" lang="54" style="color: rgb(34, 34, 34);">MoneyPolo EUR</option><option value="152" lang="67" style="color: rgb(34, 34, 34);">PaySera</option><option value="154" lang="68" style="color: rgb(34, 34, 34);">Epay USD</option><option value="97" lang="68" style="color: rgb(34, 34, 34);">Epay EUR</option><option value="165" lang="75" style="color: rgb(34, 34, 34);">Alipay</option><option value="73" lang="24" style="color: rgb(170, 170, 170);">PaySafeCard</option><option value="145" lang="60" style="color: rgb(34, 34, 34);">Capitalist USD</option><option value="85" lang="60" style="color: rgb(34, 34, 34);">Capitalist RUB</option><option value="147" lang="62" style="color: rgb(34, 34, 34);">Epese</option><option value="76" lang="28" style="color: rgb(34, 34, 34);">SolidTrust Pay</option><option value="61" lang="17" style="color: rgb(170, 170, 170);">W1 USD</option><option value="170" lang="17" style="color: rgb(170, 170, 170);">W1 RUB</option><option value="46" lang="17" style="color: rgb(170, 170, 170);">W1 UAH</option><option value="175" lang="39" style="color: rgb(34, 34, 34);">ePayments</option><option value="109" lang="49" style="color: rgb(34, 34, 34);">NixMoney USD</option><option value="125" lang="49" style="color: rgb(34, 34, 34);">NixMoney EUR</option><option value="6" lang="4" style="color: rgb(34, 34, 34);">Yandex.Money</option><option value="110" lang="18" style="color: rgb(170, 170, 170);">QIWI USD</option><option value="126" lang="18" style="color: rgb(34, 34, 34);">QIWI EUR</option><option value="63" lang="18" style="color: rgb(34, 34, 34);">QIWI RUB</option><option value="127" lang="18" style="color: rgb(34, 34, 34);">QIWI KZT</option><option value="50" lang="9" style="color: rgb(170, 170, 170);">LiqPay</option><option value="155" lang="69" style="color: rgb(34, 34, 34);">E-kzt</option><option value="11" lang="26" style="color: rgb(34, 34, 34);">Idram</option><option value="49" lang="64" style="color: rgb(34, 34, 34);">Mobile Wallet</option></optgroup><optgroup label="Online banking" class="bgb"><option value="58" lang="13" style="color: rgb(34, 34, 34);">Visa/MasterCard USD</option><option value="65" lang="13" style="color: rgb(34, 34, 34);">Visa/MasterCard EUR</option><option value="59" lang="13" style="color: rgb(34, 34, 34);">Visa/MasterCard RUB</option><option value="60" lang="13" style="color: rgb(34, 34, 34);">Visa/MasterCard UAH</option><option value="54" lang="13" style="color: rgb(170, 170, 170);">Visa/MasterCard BYN</option><option value="111" lang="13" style="color: rgb(34, 34, 34);">Visa/MasterCard KZT</option><option value="69" lang="23" style="color: rgb(34, 34, 34);">Wire USD</option><option value="70" lang="23" style="color: rgb(34, 34, 34);">Wire EUR</option><option value="81" lang="23" style="color: rgb(170, 170, 170);">Wire GBP</option><option value="71" lang="23" style="color: rgb(34, 34, 34);">Wire RUB</option><option value="102" lang="23" style="color: rgb(34, 34, 34);">Wire UAH</option><option value="187" lang="23" style="color: rgb(170, 170, 170);">Wire BYN</option><option value="113" lang="23" style="color: rgb(34, 34, 34);">Wire KZT</option><option value="166" lang="23" style="color: rgb(34, 34, 34);">Wire CNY</option><option value="167" lang="23" style="color: rgb(170, 170, 170);">Wire THB</option><option value="100" lang="41" style="color: rgb(34, 34, 34);">UnionPay</option><option value="42" lang="7" style="color: rgb(34, 34, 34);">Sberbank</option><option value="51" lang="11" style="color: rgb(34, 34, 34);">VTB24</option><option value="52" lang="12" style="color: rgb(34, 34, 34);">Alfa-Bank</option><option value="143" lang="12" style="color: rgb(34, 34, 34);">Alfa cash-in USD</option><option value="62" lang="12" style="color: rgb(34, 34, 34);">Alfa cash-in RUB</option><option value="64" lang="19" style="color: rgb(34, 34, 34);">Russian Standart</option><option value="79" lang="33" style="color: rgb(34, 34, 34);">Avangard</option><option value="105" lang="45" style="color: rgb(34, 34, 34);">Tinkoff</option><option value="53" lang="16" style="color: rgb(34, 34, 34);">Promsvyazbank</option><option value="95" lang="38" style="color: rgb(34, 34, 34);">Gazprombank</option><option value="57" lang="37" style="color: rgb(34, 34, 34);">Kukuruza</option><option value="157" lang="70" style="color: rgb(34, 34, 34);">Raiffeisen</option><option value="132" lang="53" style="color: rgb(34, 34, 34);">RNCB</option><option value="55" lang="3" style="color: rgb(34, 34, 34);">Privat 24 USD</option><option value="56" lang="3" style="color: rgb(34, 34, 34);">Privat 24 UAH</option><option value="158" lang="70" style="color: rgb(34, 34, 34);">Raiffeisen UAH</option><option value="68" lang="22" style="color: rgb(34, 34, 34);">Oschadbank</option><option value="118" lang="42" style="color: rgb(34, 34, 34);">PUMB</option><option value="84" lang="89" style="color: rgb(34, 34, 34);">Monobank</option><option value="4" lang="2" style="color: rgb(170, 170, 170);">Belarusbank</option><option value="103" lang="43" style="color: rgb(34, 34, 34);">Kazkombank</option><option value="90" lang="50" style="color: rgb(34, 34, 34);">HalykBank</option><option value="114" lang="7" style="color: rgb(34, 34, 34);">Sberbank KZT</option><option value="75" lang="27" style="color: rgb(34, 34, 34);">ForteBank</option><option value="168" lang="76" style="color: rgb(34, 34, 34);">Astana Bank</option><option value="159" lang="23" style="color: rgb(170, 170, 170);">SP or LLC account</option></optgroup><optgroup label="Money transfers" class="bgw"><option value="67" lang="21" style="color: rgb(34, 34, 34);">Western Union USD</option><option value="15" lang="21" style="color: rgb(170, 170, 170);">Western Union EUR</option><option value="78" lang="29" style="color: rgb(34, 34, 34);">MoneyGram USD</option><option value="77" lang="29" style="color: rgb(170, 170, 170);">MoneyGram EUR</option><option value="150" lang="66" style="color: rgb(170, 170, 170);">Ria USD</option><option value="151" lang="66" style="color: rgb(170, 170, 170);">Ria EUR</option><option value="101" lang="46" style="color: rgb(34, 34, 34);">Contact USD</option><option value="86" lang="32" style="color: rgb(34, 34, 34);">UniStream</option><option value="106" lang="46" style="color: rgb(34, 34, 34);">Contact RUB</option><option value="116" lang="47" style="color: rgb(34, 34, 34);">Golden Crown USD</option><option value="107" lang="47" style="color: rgb(34, 34, 34);">Golden Crown RUB</option></optgroup><optgroup label="Cash" class="bgb"><option value="89" lang="35" style="color: rgb(34, 34, 34);">Cash USD</option><option value="141" lang="35" style="color: rgb(34, 34, 34);">Cash EUR</option><option value="91" lang="35" style="color: rgb(34, 34, 34);">Cash RUB</option><option value="92" lang="35" style="color: rgb(34, 34, 34);">Cash UAH</option><option value="94" lang="35" style="color: rgb(170, 170, 170);">Cash KZT</option></optgroup></select></dd> </dl> <input type="submit" class="button" value="Find the best rate" onclick="return list_clk()"> </fieldset> </form> <script type="text/javascript"><!-- setSelectStyle(document); eventPush(document.getElementById('currency_lc'), 'change', function () {sel_change('lc', true)}); eventPush(document.getElementById('currency_rc'), 'change', function () {sel_change('rc', true)}); sel_change('lc', false); sel_change('rc', false); //--> </script> </div> </div> <div class="rate"> <div id="curr_top" class="hide"></div> <div class="bottom"></div> </div> </div></body></html> pragma集成,您不应该使用。)