suchen

Heim  >  Fragen und Antworten  >  Hauptteil

javascript - xmlhttp.open调用python脚本的问题

xmlhttp.open("GET","{{url_for('static',filename="test.py")}}",ture);

难道不是应该执行test.py的脚本么?为什么每次都是把test.py当做文本返回?

比如我的test.py只有一行print "hello,world",怎么能够执行它而不是把这个语句当做文本显示在浏览器上呢

PHP中文网PHP中文网2900 Tage vor273

Antworte allen(0)Ich werde antworten

Keine Antwort
  • StornierenAntwort