日期:2014-05-17  浏览次数:20485 次

C#后台数组赋值到javascript

   jQuery(document).ready(function () {
                    $('#tags').tagHandler({
                        assignedTags: ['AAA'],
                        availableTags: ['HTML', 'CSS', 'Javascript', 'Dojo', 'Mootools', 'jQuery', 'jQuery插件', 'SEO', '素材', '图标'],
                        autocomplete: true,
                        onAdd: function (tag) {
                            var addflag = true, tags = $('#tags').tagHandler("getTags");
                            jQuery.each(tags, function (i, e) {
                                if (tag.toUpperCase() === e.toUpperCase()) {
                                    $('#tags').find('.tagItem').each(function () {
                                        if ($(this).html().toLocaleUpperCase() === tag.toLocaleUpperCase()) {
                                            $(this).animate({ opacity: 0.55 }).delay(20).animate({ opacity: 1 }).animate({ opacity: 0.55 }).delay(20).animate({ opacity: 1 });
                                        }