jQuery 移动框架

发布于 2024-11-29 00:27:43 字数 600 浏览 4 评论 0原文

我正在开发一个大型移动项目,作为移动网站和移动应用程序,它应该支持广泛的平台,如 iOS、Android、BlackBerry OS、Windows MobileSymbian

我选择使用 jQuery Mobile 因为我读到了很多关于它的好东西并且广泛其支持的平台范围。 我的网站和应用程序将有很多信息和事务操作。

jQuery Mobile 足以开发这样的项目吗?而且我还了解到很多开发人员正在使用 Razor .NET 框架来编写内联代码jQuery 移动。我为什么要使用这样的框架?还有其他像 Razor 这样优秀的框架吗?

I am developing a big project for mobile as mobile sites and mobile applications which should support a wide range of platforms like iOS, Android, BlackBerry OS, Windows Mobile, and Symbian.

I chose to go with jQuery Mobile because of a lot of good things I read about it and a wide range of its supported platforms.
My site and application will have a lot informational and transactional operations.

Is jQuery Mobile enough for developing such a project? And also I read a lot of developers are using Razor .NET framework for writing inline code withing jQuery Mobile. Why should I use such frameworks? And are there other great frameworks like Razor?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你的背包 2024-12-06 00:27:43

这很大程度上取决于意见,但我认为 MVC 3 和 jQuery Mobile 可以很好地协同工作。我在一些中型(15 个页面,5 个控制器)网站上使用过 jQuery Mobile 和 MVC 3 Razor,我真的很喜欢它。

我创建了一个可通过 Visual如果您有兴趣一起测试 jQuery Mobile 和 MVC 3 Razor,请访问 Studio 扩展库。还可以在 GitHub 上的 MVC 3 jQuery Mobile 项目 上获取源代码。

具体来说,MVC 3 中内置的新助手功能可以提高生产力:

@helper Link(string url, string text = "", string icon = "", string theme = "", bool? isLeft = null, bool isBack = false, params string[] classes)
{    
    <a href="@url" data-role="button" data-icon="@icon" data-theme="@theme" @(isBack ? "data-direction=reverse" : "") class="@(isLeft.HasValue ? (isLeft.Value ? "ui-btn-left" : "ui-btn-right") : "") @(string.Join(" ", classes))">@text</a>    
}

It largely comes down to opinion, but I think MVC 3 and jQuery Mobile work well together. I've used jQuery Mobile and MVC 3 Razor for some medium (15 pages, 5 controllers) sites, and I really enjoy it.

I've created a jQuery Mobile site template available through the Visual Studio Extensions gallery if you're interested in testing out jQuery Mobile and MVC 3 Razor together. Source is also available on the MVC 3 jQuery Mobile Project at GitHub.

Specifically, the new helpers functionality built into MVC 3 can be a productivity boost:

@helper Link(string url, string text = "", string icon = "", string theme = "", bool? isLeft = null, bool isBack = false, params string[] classes)
{    
    <a href="@url" data-role="button" data-icon="@icon" data-theme="@theme" @(isBack ? "data-direction=reverse" : "") class="@(isLeft.HasValue ? (isLeft.Value ? "ui-btn-left" : "ui-btn-right") : "") @(string.Join(" ", classes))">@text</a>    
}
酒绊 2024-12-06 00:27:43

对于使用 jQuery Mobile 进行服务器端开发,没有比 Node.JS 更好的了。

让您在客户端和服务器上使用相同的代码,并且可以使用与 jQuery Mobile 中相同的 jQuery.tmpl 模板。因此,与任何 .NET 框架相比,您可以保持 HTML 更简洁,并强制执行 HTML 和代码更严格的分离。

它具有事件 IO,对于许多在 .NET 中还没有遗留代码的基于 jQuery 的网站来说是最合适的选择。甚至微软也知道这一点,因为他们只是在 Node 上投资了资金,让开发人员创建一个优化的 Windows 端口,而不是构建 cygwin。

For server-side development with jQuery Mobile there's not much better than Node.JS

Lets you use the same code on client and server and can use the same jQuery.tmpl templating that you can use in jQuery Mobile. So you can keep your HTML cleaner and enforce stricter separation of HTML and code than you could with any of the .NET frameworks.

It has evented IO and is the most appropriate choice for many jQuery based sites that don't have legacy code in .NET already. Even Microsoft know it as they just invested money in Node to get the developers to create an optimised windows port instead of building off cygwin.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文