1.獲取iframe父窗口的dom節(jié)點
parent.$("#id"); $('#父窗口中元素的id',?parent.document).事件();? window.parent.document.getElementById("父窗口中元素的id").事件();?//js
2.獲取iframe子窗口的dom節(jié)點
parent.$("#iframe的id").contents().find("#iframe中控件的id").事件(); parent.$("#iframe中控件的id",document.frames("iframe的name").document).事情(); window.frames["iframe中的name值"].document.getElementById("iframe中控件的id").事件();//js
3.將JSON對象轉(zhuǎn)化為JSON字符
var?last=JSON.stringify(obj); var?last=obj.toJSONString();
4.由JSON字符串轉(zhuǎn)換為JSON對象
var?obj?=?JSON.parse(str); var?obj?=?str.parseJSON();
5.數(shù)組轉(zhuǎn)字符串
a.join("-");
6.字符串轉(zhuǎn)數(shù)組
a.split(",");
7.js動態(tài)加載文件
document.write("