gpt4 book ai didi

javascript - jQuery keyup 事件只触发一次

转载 作者:行者123 更新时间:2023-11-30 09:47:56 25 4
gpt4 key购买 nike

<分区>

为什么这个 jQuery 事件只触发一次?

$(document).on('keyup', '[data-behavior="oneliner-text-area"]', function (event) {
var textLength = $(this).length;
var textLengthLimit = 140;
$('[data-behavior="oneliner-counter"]').html(textLengthLimit - textLength);
if ((textLengthLimit - textLength) < 0) {
$('[data-behavior="oneliner-counter').addClass('oneliner-count-warning');
}
});

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com