对jquery熟悉的进
514
- 菊花肿了2011-10-23金牌会员26499
请教一下 这种POST方式的缺点- - $(document).ready(function() {
- $('.teacher_msg').load('click', post);
- });
- - function post() {
- var id = $(this).attr('ID');
- //alert(id);
- $('#'+id).click(function() {
- $(this).parent().parent().slideUp();
- $(this).parent().parent().prev().slideDown();
- - $(this).parent().parent().prev().load('post.php', {'parents_file' : $('#p'+id).val(),'txt' : $('#t'+id).val()},function() {
- var value = $(this).text();
- if (value == '请输入内容') {
- $(this).next().slideDown();
- }
- });
- });
- }复制代码