Skip to content

Commentary.js 是仿前端乱炖的评注功能插件,可以针对文章的某一处进行评论

Notifications You must be signed in to change notification settings

RenShine/Commentary.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Commentary.js 是仿前端乱炖的评注功能,可以给文章的某一个部分添加评论。

=======

点击查看demo

###使用方法

<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
<script src="js/Commentary.js"></script>
<script>
$('.article').Commentary({
    addCommentary : function(element){
    	console.log(element)
		//添加评注的回调,用来跟后端交互
		// element为添加的那枚评注的DOM元素
    }	
});
</script>

支持AMD方式调用

About

Commentary.js 是仿前端乱炖的评注功能插件,可以针对文章的某一处进行评论

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published