对于新手 Web 开发人员来说,最简单的 Javascript 框架是什么?

发布于 2024-09-08 23:20:33 字数 116 浏览 2 评论 0原文

让您的脚踩在 Web 开发新手的专家开发人员的靴子上。 当然,他必须处理 JavaScript,并且在选择框架来完成其工作时可能会遇到一些困难。

对于一般用途:如果简单易用是首要要求,您建议使用哪一个?

Put your foot inside the boots of an expert developer that is new to web development.
Certainly he will must deal with JavaScript and probably he will encounter a bit of difficulties with choosing a framework for its job.

For general purpose: which one do you suggest if the an easy usage is the first requirements?

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

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

发布评论

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

评论(6

太阳哥哥 2024-09-15 23:20:33

我使用过 jQuery、script.aculo.us 和 mootools,我强烈推荐 jQuery,它似乎在易用性方面胜过许多其他框架。

对于熟悉 HTML 和 CSS 的人来说,jQuery 非常适合该范式,并且使向 Javascript 的转换非常简单。

例如,对于这样的 html:

<div id="content">
    <h2>Heading</h2>
    <p class="featured">This content</p>
</div>

您可能拥有如下所示的 CSS 选择器:

#content {
    margin: 0 auto;
    width: 760px;
}

#content h2 {
    font-size: 110%;
}

#content p.featured {
    font-weight: bold;
}

在 jQuery 中,您可以使用相同的选择器操作这些元素:

$('#content').hide();
$('#content h2').html('New Heading');
$('#content p.featured').css('border', '#cccccc 1px solid');

jQuery 还拥有优秀的文档,可以真正帮助初学者直接入门。

I've worked with jQuery, script.aculo.us, and mootools, and I would highly recommend jQuery, which seems to trump a lot of the other frameworks in its ease of use.

For someone who is familiar with HTML and CSS, jQuery fits the paradigm really well, and makes the transition into Javascript very simple.

For example, with html such as this:

<div id="content">
    <h2>Heading</h2>
    <p class="featured">This content</p>
</div>

You might have CSS selectors that looked like this:

#content {
    margin: 0 auto;
    width: 760px;
}

#content h2 {
    font-size: 110%;
}

#content p.featured {
    font-weight: bold;
}

In jQuery, you can manipulate those elements using the same selectors:

$('#content').hide();
$('#content h2').html('New Heading');
$('#content p.featured').css('border', '#cccccc 1px solid');

jQuery also has excellent documentation that can really help a beginner jump right in.

盛装女皇 2024-09-15 23:20:33

我也会投票给 jQuery。我发现它使用简单、易于学习、功能强大、文档齐全、功能丰富、可扩展,并得到了强大的插件开发人员社区的支持。

I would also put a vote in for jQuery. I have found it to be simple to use, easy to learn, powerful, well documented, feature rich, extensible and backed by a great community of plugin developers.

七秒鱼° 2024-09-15 23:20:33

请参阅此处按功能进行比较。

在过去的三年里,我使用过 Prototype/script.aculo.us 和 jQuery。从这两者中,我更喜欢 jQuery。

See here for a comparison by feature.

In the past three years, I've used Prototype/script.aculo.us and jQuery. From the two, I prefer jQuery.

岁月染过的梦 2024-09-15 23:20:33

一般来说,现在每个人都使用 jQuery。我非常喜欢它。

您还可以查看 MooTools。根据您过去的经验,您可能会发现它更适合您的风格。

Generally, everyone uses jQuery these days. I like it pretty well.

You might also check out MooTools. Depending on your past experience, you may find it fits your style better.

隔纱相望 2024-09-15 23:20:33

我个人也倾向于使用 jQuery。这就是我最近需要这类东西时使用的东西。

文档齐全,并且已有大量插件可用。

I'd personally go with jQuery too. That's what I use these days when I need that sort of thing.

Well documented and a plethora of plugins already available.

梦幻之岛 2024-09-15 23:20:33

来自新手:我一直在使用 jQuery,只需一点点技巧就可以创造出巨大的成果。您使用 jQuery 掌握的技能越多,事情就会变得越酷、越容易。

jQuery 支持很多选择器,可以轻松地向任何 HTML 元素添加/删除属性,使 ajax 和 json 易于使用,并且拥有一个非常有用的社区。

From a newbie: I have been using jQuery and it creates big results with only a little skill. The more skill you build with jQuery, the cooler and easier things get.

jQuery supports a lot of selectors, It’s easy to add/remove attributes to any HTML element, makes ajax and json easy to use and has a big helpful community.

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