这是直接给p加上class,还是创建p再加上class。本身html是没有这个p的。
翻译成原生该怎么写
this.$editor = $('<p>').addClass('emoji-wysiwyg-editor');
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
标签并不一定要在
html里,也可以存在于js的变量中。