1
比方說,我現在的頁面看起來像:如何將當前頁面樣式表作爲字符串?
<html>
<head>
<style>
/* I want to get all this as a string.. AS IS */
</style>
</head>
<body>
<script>
function getEntireStyleAsString()
{
var str = "";
/// .... what should be in here?
return str;
}
</script>
</body>
</html>
我想一個簡單的函數返回我的我的網頁的整個風格爲字符串。使用jquery很好。我一直在研究這一點,並找不到答案。
是所有在''
了''