使用 javascript/jQuery 实现的单页应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30961591/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 05:59:17  来源:igfitidea点击:

single page application implemented with javascript/jQuery

javascriptjquerysingle-page-application

提问by shikhar chauhan

Hi I am looking for a very simple example of single page web application implimented with pure javascript/jquery. Don't want to use angular backbone ember etc..

嗨,我正在寻找一个使用纯 javascript/jquery 实现的单页 Web 应用程序的非常简单的示例。不想使用角骨干余烬等。

采纳答案by NightOwlPrgmr

Here are some links to help point you in the right direction. If you don't want to use any frameworks (Angular, Backbone, etc.) these links will be good. They use jQuery and perhaps one other library/plugin. Hope they help!

这里有一些链接可以帮助您指明正确的方向。如果您不想使用任何框架(Angular、Backbone 等),这些链接会很好。他们使用 jQuery,也许还有其他库/插件。希望他们有所帮助!

Guide A- uses jQuery library handlebars

指南 A- 使用 jQuery 库把手

Guide B- uses jQuery plugin bbq

指南 B- 使用 jQuery 插件bbq

Guide C- uses jQuery plugin sammy.js

指南 C- 使用 jQuery 插件sammy.js

回答by omikes

Try this project created by Rishav Sharan. It is a minimalist but nice looking SPA (single page app) using just javascript and html. The project is very simple, not requiring nor making use of any external js frameworks (not even jQuery). The "secret" link is broken on purpose to demonstrate the Error 404 capability.

试试这个由 Rishav Sharan 创建的项目。它是一个极简但漂亮的 SPA(单页应用程序),仅使用 javascript 和 html。该项目非常简单,不需要也不使用任何外部js框架(甚至不是jQuery)。故意断开“秘密”链接以演示错误 404 功能。

DemoSource

演示