跳至內容
選單
此問題已被標幟
1 回覆
6843 瀏覽次數

I need to display a python variable in javascript loop. But when I try to show it, doesn't work:

document.write("<p><strong> A l'attention de :"+${l.name}+"</strong><br/> Tél : </p>");

Help me please!

頭像
捨棄
最佳答案
                    

Print that value in div section with id, and call that value in javascript.

like 

${l.name}
${l.name}



varlanme=document.getelementbyid('lname')
document.write("

A l'attention de :"+ lname +"
Tél :

");



頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 25
3998
1
9月 19
10842
3
12月 23
46057
4
9月 16
9087
0
3月 15
3978