binux / pyspider

A Powerful Spider(Web Crawler) System in Python.

Home Page:http://docs.pyspider.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help, what does “:data-value” in html templates mean?

SouthMemory opened this issue · comments

I was learning django

I can not understand
1、how @binux managed to update task status dynamically, by ajax polling or websocket?
2、what is the use of ":data-value" in template "index.html" ? for example :
<td v-for="type in '5m,1h,1d,all'.split(',')" class="project-progress progress-{{* type }}" :title="project.progress[type].title" :data-value="project.progress[type].task">

Thanks anyone if you can give some tips

They're vue.js templates

They're vue.js templates

Thanks, but I still can not figure out how task status are updated dynamically, is it by ajax polling or websocket?