如何将变量值添加到新变量中?我正在修改新闻滑块,我想在字幕中插入“日期”
我试过的:
(function( $ ){
$.fn.accessNews = function(settings){
$now = new Date();
var defaults = {
// title for the display
title: "news:",
// subtitle for the display
subtitle: "$now",