search

Home  >  Q&A  >  body text

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中文网2897 days ago259

reply all(0)I'll reply

No reply
  • Cancelreply