var css = document.creatStyleSheet();

css.addRule("v:\\roundrect","behavior:url(#default#vml);display:inline-block;");

var rect = document.creatElement("v:roundrect");

setAttribute(rect,{
 arcsize:"20px",
 stroked:false
});
rect.css({
 width:"20px",height:"20px",antialias:true
})

原文链接:http://news.cnblogs.com/n/88055/

数组去重:Array.prototype.distinct = function(){
    var self = this;
    var _a = this.concat().sort();
    _a.sort(function(a,b){
        if(a == b){
            var n = self.indexOf(a);
            self.splice(n,1);
        }
    });
    return self;
};

转自:http://www.uedmagazine.com/ued/comments.php?y=10&m=11&entry=entry101114-131904

相关文章:

  • 2021-08-15
  • 2022-12-23
  • 2021-12-03
  • 2021-07-23
  • 2022-01-07
  • 2021-11-05
  • 2021-07-27
猜你喜欢
  • 2022-12-23
  • 2022-02-23
  • 2021-11-11
  • 2021-08-26
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案