jq獲取checkbox radio
```
$('input:checkbox[name="inlineCheck"]:checked').val()
$('input:radio[name="Radio"]:checked').val()
$('.write_type option:selected') .val();
$('.write_level option:selected') .val();
```
ckeditor 獲取內容
```
CKEDITOR.instances.editor1.getData(),
```
獲取子元素img的src標簽
```
$(this).find("img").eq(0).attr("src")
```
## 跳轉
1.我們可以利用http的重定向來跳轉
`window.location.replace("http://www.jb51.net");`
2.使用href來跳轉
`window.location.href = "http://www.jb51.net";`
3.使用jQuery的屬性替換方法
```
3.1 $(location).attr('href', 'http://www.jb51.net');
3.2 $(window).attr('location','http://www.jb51.net');
3.3 $(location).prop('href', 'http://www.jb51.net')
```