|
中继器可以用表的形式存储复杂数据,但是怎样读取,并且读取固定某行某列的数据呢?
这个需求之前多次遇到,但是因为是时间问题都没解决,这次花了点时间在Axure的官方网站上找到的,下边是原文的引用,具体方法见附件。
Attached file shows how to use a repeater as an array. The repeater offers an easy way to organise large grids of data, cut and paste from Excel, for example. But functions for accessing the values are not provided by Axure, nor is javascript array syntax supported (as far as I can work out).
So I'm extracting the repeater as a text array, [note, the addition of ","s in the repeater interactions]...then extracting the values I want using text functions.
The text functions I've written look a bit hairy. I suspect there might be more efficient 'algorithms' but they're very easy to use (you don't have to understand the functions to use them) and self-contained, so easy to transfer.
原文地址
http://www.axure.com/forum/tips- ... s-out-repeater.html
Repeater_getValues_DIFAROO_v01.rp
(63.18 KB, 下载次数: 273)
|
|