过滤过期日期

时间:2018-12-11 06:13:14

标签: javascript html vue.js

我为自动过期XML元素开发了一个代码。从XML获取到期日期,该函数使用XML文件过滤到期日期。但是代码不会返回expire元素。

代码如下:

XML

select * from req_specs INNER JOIN nodes_hierarchy nh
on nh.id=req_specs.testproject_id
INNER JOIN requirements reqs 
on req_specs.id =reqs.srs_id where nh.name='XXX'

HTML

<slider expires="15/11/2018">
    <title>Title 1</title>>
    <mobile_slider>https://alistboutique.files.wordpress.com/2013/05/tropical-garden-flowers-ayala-alabang-manila-philippines-017.jpg</mobile_slider>
</slider>

<slider expires="23/12/2018">
    <title>Title 2</title>
    <image>http://www.morewallpapers.com/wp-content/uploads/2016/01/best-daisy-flower-wallpaper.jpg</image>
</slider>

<slider expires="01/11/2018">
    <title>Title 3</title>
    <image>http://2.bp.blogspot.com/-PoxSsOhoxfA/Unpk8xUYANI/AAAAAAAAxyk/w7IAAmxZ1Sg/s1600/Zinnia+Flower+1.jpg</image>
</slider>

JavaScript

<div class="col-sm-4 random" id="random" v-for="(offer, index) in offersWithoutexcerpt(category)">

0 个答案:

没有答案