2
使用的功能是它可以使用LOAD =(...)與函數而不是控制器/函數的字符串web2py的:在LOAD(阿賈克斯)
如:
Controller:
def test():
print "test"
def index():
return dict(test=test)
查看:
{{=LOAD(test, ajax=True)}}
而不是:
查看:
{{=LOAD('controller', 'test', ajax=True)}}
主要原因是,我想使用lambda /生成的函數,這種方式無法訪問。
感謝您清理此問題 – nehz