我可以从jQuery(或Node.js)的"NIL"开始吗? JavaScript的知识? [英] Can I start with jQuery (or Node.js) with "NIL" knowledge of JavaScript?

查看:68
本文介绍了我可以从jQuery(或Node.js)的"NIL"开始吗? JavaScript的知识?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[披露:该问题与如您所见,有一些建议我学习JavaScript/jQuery/Node.js.根据我的阅读,(a)jQuery是一个JS库,使使用JavaScript编码(一次可在所有浏览器中运行)变得更加容易,(b)Node.js基本上是一个服务器端JavaScript环境,(c )Javascript是上述语言的根编程语言,并且是客户端的语言.

As you can see, a few suggested that I learn JavaScript / jQuery / Node.js. From what I've read, (a) jQuery is a JS library that makes coding in JavaScript (that works across all browsers in one go) easier, (b) Node.js is a basically a server-side JavaScript environment, (c) Javascript is the root programming language of the aforementioned ones, and is client-side.

我也已经阅读了许多关于SO的相同问题,但是对于像我这样对任何类型的编程都不了解的人来说,尚不清楚.

I have also read many questions regarding the same on SO, but for someone (like me) who has nil knowledge of any kind of programming, somethings aren't clear.

(1)基本上,我的目标是为我的博客编写一个(实时)实时博客/评论应用程序.据我了解,这需要像JavaScript这样的客户端脚本语言.因此,问题是,我可以单独使用(a)jQuery(b)仅使用Node.js来构建这样的应用程序吗?

(1) Basically, my goal is to write a (real-time) live blogging/commenting application for my blog. This, I have learnt, requires a client-side scripting language like JavaScript. So, the question is, can I build such an application with (a) jQuery alone (b) Node.js alone?

(2)如果(1)的答案为是:您是否认为使用服务器端选项-Node.js会更好? (由于jQuery绝对不能在禁用JS的浏览器上运行,所以我不了解Node.js.)请告知.

(2) If the answer to (1) is YES: Do you think going with the server-side option - - Node.js would be better? (as jQuery definitely doesn't work on JS-disabled browsers, I don't know about Node.js.) Please advise.

(3)当我有一本关于XHTML的书时,这本书使我开始使用HTML,并逐渐将我带入XHTML.因此,HTML和XHTML之间没有混淆. (a)jQuery和(b)Node.js也是如此吗?

(3) When I got a book for XHTML, the book got me started with HTML, and gradually took me into XHTML. So, there was no confusion between HTML and XHTML. Would that be the case with (a) jQuery and (b) Node.js too?

(4)JS存在一个问题.某些用户可能在浏览器中禁用了JS.还有其他与JS一样好的客户端脚本替代方法吗? (问一下)

(4) There's one problem with JS. Some users may have JS disabled in the browser. Is there any other client-side scripting alternative as good as JS? (Just asking)

也就是说,为了学习,我应该首先学习(a)jQuery或(b)Node.js,JS还是可以立即从初学者的jQuery或Node.js书开始学习?哪种方法是正确的?

That is, in order to learn, (a) jQuery or (b) Node.js should I first learn, JS or can I start with a beginner's jQuery or Node.js book right away? Which would be the right way?

我真的需要您的建议,因为我是编程新手(几乎没有时间学习),并且我对即将发生的事情感到非常兴奋.

I really need your advise here, as I am totally new to programming (and have very little time to study), and I am pretty excited of what's ahead.

(我尽可能使用(a)jQuery (b)Node.js 来表示您分别考虑它们,而不认为我会同时学习.我至少只能选择一个.)谢谢.

(I used (a) jQuery and (b) Node.js whenever possible to denote that you consider them separately, and not think that I will be learning both. I can only choose one, at least for now.) Thanks.

决定!决定!对于将来可能会来这里寻找同样答案的人...从答案中可以明显看出,人们可以从jQuery开始,并最终通过实践(构建应用程序,解决问题等)来学习纯JS. .这样看来学习曲线会更长吗?! (因为您最终会遇到问题,请继续尝试解决问题,也许会失去信心……等等!等等!等等!)但这仍然很好.我选择的是最直接的方法-首先使用JS(直到我觉得自己掌握了一些东西),然后再进行jQuerying!我希望我的结论没有错. :) {感谢@Greg Pettit和@Pete Wilson}

DECISIONS! DECISIONS! For someone who may come here in the future searching for the same... From the answers it's clear that one can start with jQuery, and end up learning pure JS through practice (building applications, solving issues etc). It seems the learning curve, that way, would be longer?! (Because you end up having problems, keep trying to solve them, maybe lose confidence... blah! blah! blah!) Still that's good. What I've chosen is the straight forward way - JS first (until I feel like I've got some hold), and then go go jQuerying! I hope I am not wrong in my conclusion. :) {Thanks @Greg Pettit and @Pete Wilson}

推荐答案

Node.js和jQuery扮演两个不同的角色.一个提供服务器端JavaScript,另一个提供客户端JavaScript的抽象库.这不是一个.这个问题必须分为两个方向:

Node.js and jQuery perform two different roles. One facilitates server-side JavaScript, the other provides an abstraction library for client-side JavaScript. It's not one or the other. The question has to be branched into two directions:

  1. 我要使用哪些服务器端技术? PHP + MySQL(一种已知商品)会在服务器端实现我想要的功能吗?我应该使用我已经熟悉的东西(ASP或其他)吗?还是我喜欢Node.js预期的性能优势和可扩展性? Node.js是否有足够成熟的数据库类可以实际用于我的目的?

  1. What server-side technologies do I want to use? Is PHP+MySQL (a known commodity) going to do what I want on the server side? Should I use something I'm already familiar with (ASP or whatever)? Or do I like the projected performance benefits and scalability of Node.js to jump into that? Does Node.js have mature enough Database classes to actually use it for my purpose?

在客户端,我是否要使用纯" JavaScript编写所有内容,还是要使用框架?如果使用框架,是否应该使用jQuery,因为它似乎是最知名的,还是我研究其他可能会实现所需功能的框架?此外,我应该研究Kendo UI或jQuery UI之类的Web应用程序框架,还是将其与JavaScript框架组合在一起?

On the client-side, do I want to write everything with 'pure' JavaScript, or do I want to use a framework? If I use a framework, should I use jQuery because it seems to be the most widely-known, or do I research other frameworks that might do what I want? Furthermore, should I look into web application frameworks like Kendo UI or jQuery UI or piece it together with a JavaScript framework?

在某个时候,有人会告诉您,如果您根本不了解JavaScript,则应该从纯JavaScript开始,这样框架才不会损坏您.我,我说pooey.您想完成工作.当您可能只是在完成工作时,您不想花费很多时间来跳.

At some point, someone is going to tell you if you don't know JavaScript at all that you should start with pure JavaScript so that frameworks don't corrupt you. Me, I say phooey. You want to get stuff done. You don't want to spend your hours jumping through hoops when you could be just getting stuff done.

如果您跳入一个框架(例如jQuery)而不是正确地学习JavaScript,那么您最终还是会学到一些东西.不久之后,您会意识到只要使用this.id就不需要使用$(this).attr('id').但这没关系,因为前者在您学到更好的方法之前一直有效.

If you jump right into a framework (say, jQuery) instead of learning JavaScript properly, there are things that you will learn eventually anyhow. Before too long you'll realize that you didn't need to use $(this).attr('id') when you could've just used this.id. But it doesn't matter, because the former worked until you learned the better way.

我是前教育工作者,非常支持快速查看结果,因为它会促使您学习更多.仅仅因为您使用jQuery并不意味着您将永远忽略纯" JavaScript.如果您是一个聪明的解决问题的人,最终纯" JavaScript会找到您,并且您将开始确定使用它的正确时间和使用框架的正确时间.

I'm a former educator and very much in support of seeing results quickly, because it will propel you to learn more. Just because you start with jQuery doesn't mean you'll forever ignore 'pure' JavaScript. If you are an intelligent problem-solving kind of person, eventually 'pure' JavaScript will find you, and you'll begin to identify the right time to use it, and the right time to use a framework.

这篇关于我可以从jQuery(或Node.js)的"NIL"开始吗? JavaScript的知识?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆