<ul class="pg"></ul>
<script src="./001,js"></script>
<script>
var a = { width:200, height:200}
$("#pg").Pag({
classStyle:a,
})
在001.js内
var ele=this;
然后使用
ele.element.html("<li>hi</li>")
无法在其 ul 内添加
使用以下:
console.log(this);
console.log(ele);
结果为:
./001,js 改成 ./001.js
直接ele.html()试试看