在控制台中写道:
uncaught reference error.请告诉我,错误在哪里?
<script>
$('select').selectric({
maxHeight: 200
});
$.noConflict();
</script>发布于 2019-01-18 02:00:12
我认为这段代码可以避免错误:
<script>
$.noConflict();
$(function () {
"use strict";
if (typeof($.selectric) === "function") {
$("select").selectric({
maxHeight: 200
});
}
});
</script>https://stackoverflow.com/questions/53488381
复制相似问题