是否可以在不使用jQuery的情况下使用Materializecss? [英] Is it possible to use Materializecss without jQuery?

查看:125
本文介绍了是否可以在不使用jQuery的情况下使用Materializecss?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在没有jQuery的情况下使用 materializecss .例如,我想在不使用jQuery的情况下执行以下操作:

I would like to use materializecss without jQuery. For example, I want to do the following without the use of jQuery:

$('.chips-initial').material_chip({
    data: [{
      tag: 'Apple',
    }, {
      tag: 'Microsoft',
    }, {
      tag: 'Google',
    }],
  });

谢谢

推荐答案

从Materialize 1.0.0开始,jQuery不再是依赖项.

Starting with Materialize 1.0.0, jQuery is not a dependency anymore.

请参见 https://medium.com/@ materializecss/materialize-to-1-0 and-beyond-e0233b8ac15

以前的版本仍然依赖jQuery.另外,您可以使用Ken Wheeler的Cash.

Previous releases still rely on jQuery. Alternatively you can use Cash by Ken Wheeler.

这篇关于是否可以在不使用jQuery的情况下使用Materializecss?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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