Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript弹出窗口_Javascript_Node.js_Popup - Fatal编程技术网

Javascript弹出窗口

Javascript弹出窗口,javascript,node.js,popup,Javascript,Node.js,Popup,大家好,我需要帮助这是我的代码,我正试图在弹出窗口中显示id_command,所以我试图通过url传递它,但在我这样做后它不会打开 extends layout block content h2 #{title} h3 #{message} p Commands are body table(style='width:200%') tr th Telephone client th client th id

大家好,我需要帮助这是我的代码,我正试图在弹出窗口中显示id_command,所以我试图通过url传递它,但在我这样做后它不会打开

extends layout

block content

  h2 #{title}
  h3 #{message}
  p Commands are 
  body
    table(style='width:200%')
      tr
        th Telephone client
        th client
        th id_adresse
        //th date commande
        th date livraison
        th total
        th etat commande

      - each re in res
        tr
            ///td=re.id_commande
            td=re.telephone_client
            td=re.nom_client
            td=re.adresse
            //td=re.date_commande
            td=re.date_livraison
            td=re.total

            if re.etat_commande==1



                td(url= "http://localhost:1337/popup?var"+re.id_commande): a(href='javascript:void(0);', name='saved', title=' options ', onclick='window.open("http://localhost:1337/popup?var"+encodeURIComponent(re.id_commande),"Ratting","width=550,height=550,0,status=0,"); po=5') saved

            else if re.etat_commande==2
                td: a(href='javascript:void(0);', name='saved', title=' options ', onclick='window.open("popup.jade","Ratting","width=550,height=170,0,status=0);') valid
            else 
                td: a(href='javascript:void(0);', name='saved', title=' options ', onclick='window.open("popup.jade","Ratting","width=550,height=170,0,status=0,");') archived

似乎您已在代码中将您的
id\u command
注释为
///td=re.id\u command
,不,re拥有我试图从re获取的所有信息,re是一个对象,但它无法工作与re[0]无关每当他点击一个保存的命令时,我希望他在第一秒发送该行的id三次,似乎你已经在你的代码中注释掉了你的
id\u命令
///td=re.id\u命令
,不,re有我试图从re获取的所有信息,它是一个对象,但它不起作用与re[0]无关我希望他每次点击一个保存的第1秒,第3秒,他发送该行的id