xhEditor与bootstrap有冲突 #24

Open
spzgy opened this Issue May 26, 2016 · 0 comments

Projects

None yet

1 participant

@spzgy
spzgy commented May 26, 2016

bootstrap中有一个“按钮 button.js”
http://v3.bootcss.com/javascript/#buttons-stateful

在页面加如这种按钮的特效后,会提示错误

<script>
  $('#myButton').on('click', function () {
    var $btn = $(this).button('loading')
    // business logic...
    $btn.button('reset')
  })
</script>

JS错误:
Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'loading'

去掉“按钮 button.js”的调用,或者是去掉xhEditor,就正常了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment