Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

类jquery 的选择器$无法使用 #10

Closed
sven31316 opened this issue Aug 8, 2019 · 4 comments
Closed

类jquery 的选择器$无法使用 #10

sven31316 opened this issue Aug 8, 2019 · 4 comments
Labels

Comments

@sven31316
Copy link

无法使用$('selector')的形式获取dom节点;

我这里是用的webpack进行打包webpack-dev-server运行在浏览器端,用licia来选择元素,

选择元素:
image
使用licia方法:es6或者commonjs都不行
image

报错:
image
image

请问是什么原因啊?是不是我的使用方法不对啊?

@surunzi surunzi added the bug label Aug 8, 2019
@surunzi
Copy link
Member

surunzi commented Aug 8, 2019

这里实现有问题,下个版本修复,你可以先手工将图中红线部分的 Select 更改为 exports 后再试试看。

surunzi added a commit that referenced this issue Aug 9, 2019
@surunzi
Copy link
Member

surunzi commented Aug 11, 2019

试下 1.5.7 版本。

@surunzi surunzi closed this as completed Aug 11, 2019
@sven31316
Copy link
Author

选择器可以了,可是里面的方法还是不能用

比如官网的例子:

Snipaste2019年8月12日-15点24分25秒825毫秒
我的代码
image
image

下面是报错
image
image

@surunzi
Copy link
Member

surunzi commented Aug 12, 2019

@sven31316 ,试下 1.5.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants