我希望在body标签设置了未解析的属性时显示聚合物纸张微调器。在页面完全加载之前,我会得到几秒钟的空白屏幕。
老实说,我不知道如何开始。
https://www.polymer-project.org/0.5/docs/elements/paper-spinner.html
答案 0 :(得分:0)
通过jQuery将加载器添加到空白屏幕正文,并在收到回复后将其删除。
<INVOICES>
<INVOICE>
<INVOICE_NUMBER>FV2014000572</INVOICE_NUMBER>
<SUPPLIER_NAME>Supplier 1</SUPPLIER_NAME>
<INVOICE_ITEMS>
<INVOICE_ITEM>
<ITEM_INVOICE_NUMBER>FV2014000572</ITEM_INVOICE_NUMBER>
<ITEM_NAME>ITEM 1</ITEM_NAME>
</INVOICE_ITEM>
</INVOICE_ITEMS>
</INVOICE>
<INVOICE>
<INVOICE_NUMBER>FV2014000573</INVOICE_NUMBER>
<SUPPLIER_NAME>Supplier 1</SUPPLIER_NAME>
<INVOICE_ITEMS>
<INVOICE_ITEM>
<ITEM_INVOICE_NUMBER>FV2014000573</ITEM_INVOICE_NUMBER>
<ITEM_NAME>ITEM 1</ITEM_NAME>
</INVOICE_ITEM>
<INVOICE_ITEM>
<ITEM_INVOICE_NUMBER>FV2014000573</ITEM_INVOICE_NUMBER>
<ITEM_NAME>ITEM 2</ITEM_NAME>
</INVOICE_ITEM>
</INVOICE_ITEMS>
</INVOICE>
</INVOICES>
其中loader类将包含加载器。