回答

0

是,使用将随机指派的项目位置,而不是实际的排序是一种功能。

<template is="dom-repeat" items="[[items]]" sort="_sortItems" initial-count="1"> 
    <a href$="#[[section]]/[[item.id]]" class="item" aria-label$="More information about [[item.title]]"> 
     <shrine-item item="[[item]]"></shrine-item> 
    </a> 
    </template> 

_sortItems: function() { 
    return Math.round(Math.random()*3) - 1; 
}