jQuery를 포함하고 사용자 정의 JS 파일을 포함하여 ready() 이벤트를 호출하기 만하면됩니다. 테스트를 위해 .js 파일에 경고를했는데 정상적으로 작동했습니다. 이제 내 js 파일의 내용을 변경하면 동일한 이전 경고가 계속 나타납니다. 콘솔에서 지금은 보여줍니다Firefox가 내 확장 프로그램을 캐싱합니다. 어떻게 피하는가?
크롬 매니페스트 '파일을 읽을 수 없습니다 : /// C :/프로그램 % 20Files/모질라 % 20Firefox/확장/% 7B972ce4c6-7e08-4474-a285-3208198ce6fd %의 7D/chrome.manifest '입니다.
왜 JS 파일, 특히 jquery 함수를 호출하기가 어렵습니까?
내 파일의 내용은 다음과 같다 :
의 chrome.manifest
content myext content/
overlay chrome://browser/content/browser.xul chrome://myext /content/myext.xul
myext.xul
<?xml version="1.0"?>
<overlay id="Scrapper-Overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript" src="chrome://fbpicker/content/functions.js" />
</overlay>
functions.js
처음에는 alert ('test'); 그것이 나타났습니다.
window.addEventListener('load', function() {
gBrowser.addEventListener('DOMContentLoaded', function()
{
alert("addd");
}, false);
}, false);
을하지만 팝업으로 테스트을 보여주는 유지하는 것입니다 : 나중에 나는했습니다.
왜 FF로 콘텐츠를 캐싱하고 어떻게 제거합니까?
콘솔에 나는 다음과 같은 경고를 받고 오전 :Timestamp: 8/6/2013 2:15:32 PM
Warning: XUL box for _moz_generated_content_before element contained an inline #text child, forcing all its children to be wrapped in a block.
Source File: chrome://global/content/bindings/toolbar.xml
Line: 382
Timestamp: 8/6/2013 2:15:32 PM
Warning: XUL box for _moz_generated_content_before element contained an inline #text child, forcing all its children to be wrapped in a block.
Source File: chrome://global/content/bindings/browser.xml
Line: 0
Timestamp: 8/6/2013 2:15:34 PM
Warning: Key event not available on some keyboard layouts: key="b" modifiers="accel,alt"
Source File: chrome://browser/content/browser.xul
Line: 0
Timestamp: 8/6/2013 2:15:30 PM
Warning: Unknown property 'order'. Declaration dropped.
Source File: resource://gre-resources/ua.css
Line: 46
나는 이미 프록시 파일을 사용하고 있지만 변경 사항을 보려면 항상 활성화/비활성화해야합니다. 네가 방금 말한 다른 비트를 시험해 봐야 해. – Volatil3
다음 항목이 firefox 19에 존재하지 않습니다. – Volatil3
알아낼 수 없습니다. ID가 * blueBar * 인 방문 페이지에는 DIV가 있습니다. jQuery 길 _ $ ("# blueBar") .html() _ 또는 _aEvent.originalTarget.getElementById.innerHTML ("blueBar") _ 둘 다 ** 정의되지 않은 ** 오류. – Volatil3