【发布时间】:2014-03-06 21:08:21
【问题描述】:
如何从 '.$user['Content'].' 加载内容在文本字段中? 如果有任何解决方案,请帮助我
谢谢你
$('#add-max').ready(function(){
$.gritter.add({
// (string | mandatory) the heading of the notification
title: 'This is a notice with a max of 3 on screen at one time!',
// (string | mandatory) the text inside the notification
text: 'HERE ',
// (string | optional) the image to display on the left
image: 'http://a0.twimg.com/profile_images/59268975/jquery_avatar_bigger.png',
// (bool | optional) if you want it to fade out on its own or just sit there
sticky: false,
// (function) before the gritter notice is opened
before_open: function(){
if($('.gritter-item-wrapper').length == 3)
{
// Returning false prevents a new gritter from opening
return false;
}
}
});
return false;
});
【问题讨论】:
-
您的 ajax 代码在哪里?和相关的php代码?如果您没有这些,则无法使用 jquery 将数据获取到您的页面。
-
@VolkanUlukut 我没有 ajax 代码,如果我在其他地方使用 $user['Content'] 而不是 javascript 代码,它可以工作。
-
请编辑您的问题并将其与其他相关的 php 代码一起添加
-
@VolkanUlukut 我的问题有什么问题??离开它...感谢您的帮助
标签: javascript php jquery sql