MCPcopy Index your code
hub / github.com/hoothin/UserScripts / getDataPrefix

Function getDataPrefix

Picviewer CE+/dist.user.js:13753–13757  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13751 function dataset(elem,pro,value){
13752
13753 function getDataPrefix(){
13754 return 'data-' + pro.replace(/[A-Z]/g,function(m){
13755 return '-' + m.toLowerCase();
13756 });
13757 };
13758
13759 if(typeof value=='undefined'){//取值
13760 if(elem.dataset){

Callers 1

datasetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected