我有来自 PHP 页面的以下脚本标记:
<script src='/get_items.php'></script>
.Net MVC3 视图中理想的对应物是什么(比如我想调用一个动作方法)?
PS:php script 标签返回函数调用(通过 Fiddler 观察到),即:
RegisterThis('123', ["Title",{"1111":["Title Text","","</h2>","1","5","0",[]]}]) ;
RegisterThis('234', ["Title",{"2222":["Title Text","","</h2>","1","0","6",[]]}]) ;
RegisterThis('345', ["Title",{"3333":["Title Text","","</h2>","1","8","0",[]]}]) ;
(我不是在问创建一个 JSon 脚本,只是在 php 页面中如何让视图中的 script 标签对应。)