pyspider icon indicating copy to clipboard operation
pyspider copied to clipboard

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

Open SouthMemory opened this issue 4 years ago • 3 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

SouthMemory avatar May 11 '21 00:05 SouthMemory

They're vue.js templates

binux avatar May 11 '21 02:05 binux

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?

SouthMemory avatar May 11 '21 03:05 SouthMemory

Ajax polling

On Mon, May 10, 2021, 8:10 PM lunshu @.***> wrote:

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?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/binux/pyspider/issues/970#issuecomment-837707304, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE52M6MZLS3CVK3AYHCS2TTNCN3XANCNFSM44TOXMTA .

binux avatar May 11 '21 03:05 binux