function getColor() {
var colorElements = "0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f";
var colorArray = colorElements.split(",");
var color = "#";
for (var i = 0; i < 6; i++) {
color += colorArray[Math.floor(Math.random() * 16)];
return color;
function getSize(){
return Math.floor(Math.random() * (30 - 10) + 10);
function getTagHtml(tagArr){
var html = '';
if(tagArr!=null && tagArr.length>0){
tagArr.sort(function(){ return 0.5 - Math.random() })
for(var i=0;i
'+tagArr[i]+'';
$("#tags").html(html);
//至于参数tagArr,你就new一个数组即可,将后台取出的数据放入数组传入getTagHtml()方法!
var tagArr = new Array();
tagArr.push('AAA');
tagArr.push('BBB');
你只需要根据你自己的div布局,设置一个id = tags 属性即可,另外根据需求更改js 内 的 html代码
版权属于: 技术客
原文地址:
https://www.sunjs.com/article/detail/d0538ef9606e4399a4c81408307a6cfa.html
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
I am reaching out to you from Install Panel. We provide ads on the download button. We don't provide pop-ups, banners, or any kind of casino ads. Our ads are software-based. They don't create interruption between your user and the website. We checked your website and we are willing to work with your site. Our CPM rates are higher than the other advertising networks. Our CPM rates are ranging from
$25 to $50
per day, with flexible daily, weekly, and monthly payouts.
let's discuss this further
Email:
[email protected]
Best regards,
Kevin
Install Panel