参考
http://blog.csdn.net/rydiy/article/details/8566061
文件夹里建三个文件
popup.html
manifest.json
随便找个图标
icon.png
[img]http://dl2.iteye.com/upload/attachment/0103/0513/196e7504-efe0-309f-bfe2-a64a929a19fd.png[/img]
chrome--->更多工具--->扩展程序--》加载正在开发的扩展程序
指定到这个文件夹即可
[img]http://dl2.iteye.com/upload/attachment/0103/0515/f853fefa-af55-30ba-8584-8b6de0fcff50.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0103/0517/c05372b9-416d-3b00-9192-7e8fff9127b8.png[/img]
http://blog.csdn.net/rydiy/article/details/8566061
文件夹里建三个文件
popup.html
<html>
<head>
<title>haoning</title>
</head>
<body>
helloworld
</body>
</html>
manifest.json
{
"manifest_version":2,
"name":"haoning",
"version":"1.0",
"description":"haoning helloworld",
"browser_action":{
"default_icon":"icon.png",
"default_popup":"popup.html"
}
}
随便找个图标
icon.png
[img]http://dl2.iteye.com/upload/attachment/0103/0513/196e7504-efe0-309f-bfe2-a64a929a19fd.png[/img]
chrome--->更多工具--->扩展程序--》加载正在开发的扩展程序
指定到这个文件夹即可
[img]http://dl2.iteye.com/upload/attachment/0103/0515/f853fefa-af55-30ba-8584-8b6de0fcff50.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0103/0517/c05372b9-416d-3b00-9192-7e8fff9127b8.png[/img]