Placeholder占位符独立使用示意实例页面

效果:

代码:

CSS代码:
<link rel="stylesheet" href="//qidian.gtimg.com/lulu/theme/peak/css/common/ui/Input.css">
<link rel="stylesheet" href="//qidian.gtimg.com/lulu/theme/peak/css/common/ui/Placeholder.css">
                
HTML代码:
<input class="ui-input" placeholder="占位符">
                
JS代码:
<script src="jquery.min.js"></script>
<script src="//qidian.gtimg.com/lulu/theme/peak/js/common/ui/Placeholder.js"></script>
<script>
$('input').placeholder();
</script>