English 中文(简体)
EJS有什么用处?
原标题:How useful is EJS?

我一直在研究欧洲司法学会和JavaMVC。 我看到通过科索沃信托公司控制员及其模式(在某些情况下,即第3个政党的再融合)具有相当价值。 然而,我利用泽德等传统MVC在PHP中发展。

Typically for working with Ajax, I ll set it up just as I would any other page (model/view/controller), however instead of rendering the view, I ll return it, json_encode it and echo it out. Such as this:

echo json_encode($this->View->render( View_Name , true));

This view will have already been passed data, done it s thing, and is now returning fully rendered in a JSON object I can work with in JavaScript.

这似乎很简单。 因此,随着这种设置,使用像欧洲司法联合会这样的东西有什么好处?

It appears I would now have to not only define a new file for a view, but also continue to use the same controllers and spit out JSON instead of just the rendered view. That JSON would then contain the data used for the EJS view. Am I missing something?

感谢!

最佳回答

我难以看到欧洲法院系统的好处,除非你在你的申请中多次使用模板,但情况并不总是如此。 我还在PHP方案,并尝试了几台Java语作品。 如果我只是简单地提出申请,那么我就只贴上JQuery,但我认为最佳工作框架是ExtJS:

当你界定了你们的不同目标时,用一个缺省模板为你们树立了看法。 你们还可以给每个目标增加一个不同的视角和感觉,并在多个模板之间转回。 浏览器支持非常繁琐,而且确实在大力应用。 看一看,告诉我什么是想......

最新版本使用的是MVC应用结构:

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签