set('name', 'pay') ->import('inc/head') ->fetch('.h1', 'service/buy.info#buy') ->fetch('.richtext', 'service/buy.info#buy_desc') # 循环 ->loop ( '.item', 'service/buy.buy', array ( 'p|0' => '$v.name', 'p|1' => '$v.price', 'self' => array ( 'href' => 'javascript:;', 'onclick' => 'pay(\'<{$v.pay_url}>\')', ), ) ) ->import('inc/foot') ->display();