提交 80dcf50b 编写于 作者: Q qiang

fix(h5): scroll-view 组件调整报错信息

上级 2b870802
......@@ -446,9 +446,7 @@ export default {
_scrollIntoViewChanged: function (val) {
if (val) {
if (!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(val)) {
console.group('scroll-into-view="' + val + '" 有误')
console.error('id 属性值格式错误。如不能以数字开头。')
console.groupEnd()
console.error(`id error: scroll-into-view=${val}`)
return
}
var element = this.$el.querySelector('#' + val)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册