Skip to content

Update datetimePicker.js #3

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

CGerAJ
Copy link

@CGerAJ CGerAJ commented Aug 23, 2018

判断是否存在多次new实例 多次new 只创建一次dom 解决多次new实例创建多个dom引发的无法选择时间的bug

判断是否存在多次new实例 多次new 只创建一次dom 解决多次new实例创建多个dom引发的无法选择时间的bug
@CGerAJ
Copy link
Author

CGerAJ commented Aug 23, 2018

like this

new DatetimePicker('.js_datetimepicker',{
        });
//未来元素 
new DatetimePicker('.js_datetimepicker',{
        });
//未来未来元素 class是一致的情况
new DatetimePicker('.js_datetimepicker',{
        });

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

Successfully merging this pull request may close these issues.

1 participant