pug tag

5 questions


1 answers
51 views
0
I want to supplement the class name with the VSCode bug.

problems you are havingWe are using Pug for development in VSCode.I would like to supplement the css class name when I enter it. Is there any way?There are html and jsx complements, but I can't find a...

2 years ago

1 answers
110 views
0
You are trying to apply css repeatedly while working in the pug template.

-for(var i = 0; i<10; i++) style. #sum+i{ background-color:green; }Working in pug, you want to apply CSS repeatedly to elements with IDs sum0, sum1, sum2,... sum9. What's the problem?

2 years ago

2 answers
103 views
0
When I get the j query value, it is output in undefined type.

head meta(charset='utf-8') script(src=//code.jquery.com/jquery-3.3.1.min.js) script. var a=$(#test_id).text(); alert(a); body h1(id='test_id')='test value'Why does it say undefined? I beg you.

2 years ago

1 answers
55 views
0
I have a question about the css background image path.

Creating page with pug template. I put the jpg image file in the same directory as the pug template file and wrote the code as follows, but no background is specified. What's the problem?doctype htmlh...

2 years ago

3 answers
55 views
0
If the entry conditions are insufficient on the membership registration page, we want to prevent submission after displaying a warning window, but it is not possible.

html head script(src=//code.jquery.com/jquery-3.3.1.min.js) title='Membership page' script. function submitAction(event) { var a = $('input[name=username]').val(); if(a.length===0){ alert('...

2 years ago

© 2024 OneMinuteCode. All rights reserved.