首页 > 通过xmlhttp.open调用python脚本的问题

通过xmlhttp.open调用python脚本的问题

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

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

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

【热门文章】
【热门文章】