Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 字体真棒图标不显示?_Javascript_Html_Css_Font Awesome - Fatal编程技术网

Javascript 字体真棒图标不显示?

Javascript 字体真棒图标不显示?,javascript,html,css,font-awesome,Javascript,Html,Css,Font Awesome,我正在构建一个扩展的搜索栏,不幸的是,中的搜索图标没有显示 代码如下: ;(功能(窗口){ "严格使用",; //EventListener |@jon| u neal |//github.com/jonathantneal/EventListener !window.addEventListener&&window.Element&&(function(){ 函数addToPrototype(名称、方法){ Window.prototype[name]=HTMLDocument.protot

我正在构建一个扩展的搜索栏,不幸的是,中的搜索图标没有显示

代码如下:

;(功能(窗口){
"严格使用",;
//EventListener |@jon| u neal |//github.com/jonathantneal/EventListener
!window.addEventListener&&window.Element&&(function(){
函数addToPrototype(名称、方法){
Window.prototype[name]=HTMLDocument.prototype[name]=Element.prototype[name]=method;
}
var注册表=[];
addToPrototype(“addEventListener”,函数(类型,侦听器){
var目标=此;
registry.unshift({
__侦听器:函数(事件){
event.currentTarget=目标;
event.pageX=event.clientX+document.documentElement.scrollLeft;
event.pageY=event.clientY+document.documentElement.scrollTop;
event.preventDefault=函数(){
event.returnValue=false
};
event.relatedTarget=event.fromElement | | null;
event.stopPropagation=函数(){
event.cancelBubble=true
};
event.relatedTarget=event.fromElement | | null;
event.target=event.src元素| |目标;
event.timeStamp=+新日期;
调用(目标、事件);
},
听众:听众,
目标:目标,,
类型:类型
});
this.attachEvent(“on”+类型,注册表[0]。\u侦听器);
});
addToPrototype(“removeEventListener”,函数(类型,侦听器){
对于(var index=0,length=registry.length;indexinput.sb search input');
这个;
}
UISearch.prototype={
_initEvents:function(){
var self=这个,
initSearchFn=函数(ev){
ev.stopPropagation();
//削减其价值
self.inputEl.value=self.inputEl.value.trim();
如果(!classie.has(self.el,'sb search open'){//打开它
ev.preventDefault();
self.open();
}否则,如果(classie.has(self.el,'sb search open')&&&/^\s*$/.test(self.inputEl.value)){//关闭它
ev.preventDefault();
self.close();
}
}
this.el.addEventListener('click',initSearchFn);
此.el.addEventListener('touchstart',initSearchFn);
this.inputEl.addEventListener('click',函数(ev){
ev.stopPropagation();
});
this.inputEl.addEventListener('touchstart',函数(ev){
ev.stopPropagation();
});
},
打开:函数(){
var self=这个;
分类添加(this.el,“sb搜索打开”);
//集中输入
如果(!mobilecheck()){
this.inputEl.focus();
}
//如果单击了正文,请关闭搜索输入
var bodyFn=功能(ev){
self.close();
这是我的
.fa.fa-search:before {
    content: "\e000";
}
.fa-search:before {
    content: "\f002";
}
https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css
.fa.fa-search:before {
    content: "\e000";
}