zoukankan      html  css  js  c++  java
  • Angularjs

    app.directive("itemPopover",function($timeout){
        return {
            restrict : "A",
            link : function(scope,element,attrs){
                element.popover();
                 
                var  createText = "<div class='hover' sadsdas style='position:absolute;top:50%;left:125px;400px;z-index:9999999;font-size:26px;color:#fff;text-align:center;'>请输入文本</div>";
                var con = angular.element(".app-content");
                 
                element.on("click",function(){
                    if(attrs.tag == "createText"){
                        console.log(con)
                        $timeout(function(){
                            con.append(createText);
                        });
                    }
                });
                 
            }
        }
    });

  • 相关阅读:
    查找整数
    寒假作业3
    寒假作业2
    寒假作业1
    秋季学期总结
    对自己影响最深的三位老师
    自我介绍
    jquery学习笔记
    素材网站
    转:vim模式下报错E37: No write since last change (add ! to override)
  • 原文地址:https://www.cnblogs.com/herd/p/5855773.html
Copyright © 2011-2022 走看看