mirror of https://github.com/jkjoy/sunpeiwen.git
8 lines
197 B
JavaScript
8 lines
197 B
JavaScript
|
'use strict';
|
||
|
// B.2.3.10 String.prototype.link(url)
|
||
|
require('./_string-html')('link', function (createHTML) {
|
||
|
return function link(url) {
|
||
|
return createHTML(this, 'a', 'href', url);
|
||
|
};
|
||
|
});
|