Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 487 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 487 Bytes

seajs-style

A Sea.js plugin for embedding style text in JavaScript code

Install

Install with spm:

$ spm install seajs/seajs-style

Usage

<script src="path/to/sea.js"></script>
<script src="path/to/seajs-style.js"></script>

<script>

// seajs has importStyle method after loading style plugin.
seajs.importStyle("body { margin: 0 }")

</script>

For more details please visit 中文文档