2016-04-15 26 views
0

Chrome拡張機能を開発しています。私はdatepickerの下のコードを試してみました。しかし、拡張ファイルでは動作しません。正常なhtmlファイルで正常に作業しています。Chrome拡張機能でDatepickerが機能しない

<html lang="en"> 
    <head> 
     <meta charset="utf-8"> 
     <title>jQuery UI Datepicker - Display inline</title> 
     <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> 
     <script src="//code.jquery.com/jquery-1.10.2.js"></script> 
     <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> 
     <link rel="stylesheet" href="/resources/demos/style.css"> 
     <script> 
     $(function() { 
     $("#datepicker").datepicker(); 
     }); 
     </script> 
    </head> 
    <body> 

    Date: <div id="datepicker"></div> 


    </body> 
    </html> 

答えて

0

私は同じことをやろうとしています。最初のことは、あなたのHTMLファイルにスクリプトがありません.jsファイルから取得する必要があります。 はクロム拡張子の.htmlで書かれていないため、

関連する問題