作为一名精通 HTML 和 CSS 的设计师,开始使用 jquery 插件而不是学习 javascript 安全吗?我不是程序员
我已经掌握了大部分设计并将其编码为只读网页。我希望更上一层楼。我使用了一些 jquery 插件,并通过一些尝试和错误很容易地弄清楚它们。我也开始阅读一本关于 Java 脚本的书,但它似乎不是我真正需要的,因为我不打算真正编写自己的代码。我认为至少短期内我不会。我现在学习大量的 jquery 插件使用是否安全,或者我真的应该尝试学习 java 脚本来编写自己的代码。我买了“Headfirst Javascript”这本书,但它有很多基础知识,jquery 插件可以快速给我结果,我可以使用!有什么建议吗?
I have mastered for the most part taking my designs and coding them as read only web pages. I'm looking to go the next level. I have used some jquery plugin's and figured them out quite easily with a bit of trial and error. I have also started reading a book on Java script but it seems like nothing I'll ever really need as I don't plan on REALLY ever writing my own code. I don't think I will at least any time soon. Is it safe for me to just learn a plethora of jquery plugin uses for now or should i really be trying to learn java script to write my own code. I bought the book "Headfirst Javascript" but it is a lot of basics where jquery plugins give me results fast i can use! Any advice?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
jQuery 就像任何抽象一样:您可以在不了解它在幕后做什么的情况下使用它,但如果您因缺乏理解而遇到问题,请不要感到惊讶。另外,你不能只做 jQuery 而不做任何 Javascript。例如:
这些都是 jQuery 世界中重要且常见的东西,但都是“纯”Javascript。
因此,总而言之,我建议在使用 jQuery 之前至少对 DOM 和 Javascript 语法和功能有基本的了解。
jQuery is like any abstraction: you can use it without understanding what it's doing under the hood but don't be surprised if you run into problems from that lack of understanding. Also, you can't do just jQuery without doing any Javascript whatsoever. For example:
These are all important and common things in the jQuery world but are "pure" Javascript.
So all in all I'd recommend having at least a rudimentary knowledge of the DOM and Javascript syntax and functionality before doing jQuery.
学习 JavaScript。学习 DOM。
jQuery 很好,但如果您不了解 JavaScript 和 DOM,它就没有帮助。
jQuery 在三件事上做得很好:它使开发人员能够使用 CSS 选择器来操作 DOM,它平滑了跨浏览器编程的粗糙边缘,并且它提供了大量精彩的插件。
我推荐 Douglas Crockford 的《JavaScript:优秀部分》。它充满了关于如何编写优秀 JavaScript 的好建议,并且有一个富有洞察力的路线图,可以避免糟糕的 JavaScript 的陷阱和陷阱。也许最重要的是,它足够短,您可以在几天内(如果您阅读速度很快,则需要几个小时)阅读并消化。
Learn JavaScript. Learn the DOM.
jQuery is nice, but if you don't know JavaScript and the DOM, it isn't going to help.
jQuery does three things well: it enables developers to use CSS selectors to manipulate the DOM, it smooths the rough edges of cross-browser programming, and it offers a plethora of wonderful plugins.
I recommend Douglas Crockford's "JavaScript: The Good Parts." It's full of good advice on how to write good JavaScript, and it has an insightful road map for avoiding the gotchas and pitfalls of bad JavaScript. Perhaps most importantly, it's short enough that you can read and digest in a few days (or hours if you're a fast reader).
我从 jquery 开始,然后买了一些关于经典 javascript 的书(比如 jquery 程序员 john resig 的书!)
我认为 javascript 很难学,通过 jquery,你将了解 javascript 可以做什么!然后通过书籍你就会了解jquery的内部原理。祝你好运
另外,如果你必须在prototype和jquery之间做出选择,请选择jquery,我使用prototype 4个月了,没有学习任何javascript特定功能。
然后只用了 1 周的 javascript,我就知道 setTimeout 是用来做什么的了,
只是举个例子来说明 jquery 会时不时地帮助你学习 javascript
I started with jquery and then bought some books on classic javascript (like the one of john resig, the jquery programmer !)
I thought javascript was hard to learn and with jquery you'll learn what can be done with javascript ! Then with books you'll understand the internals of jquery. good luck
Also if you have to choose between prototype and jquery, choose jquery, i used prototype for 4 months and didn't learned any javascript specific function.
Then with only 1 week of javascript, i knew what setTimeout was used for
Just an example to show that jquery will help you learn javascript from time to time