i\'m creating a plugin in which the user adds custom settings in data- attribute in HTML. Settings are in JSON format. I\'m using these settings in Javascript.<
data-
You need to escape data and handle special characters.
And get it with jQuery: $('[data-side="front"]').data('params'); // object 0 讨论(0) 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
And get it with jQuery:
$('[data-side="front"]').data('params'); // object