zoukankan      html  css  js  c++  java
  • $.post $.getScript

    $.post的使用

    $.post(url,参数,回调函数)

    $.post("/test/test.ashx?number="Math.random(),"",funcation(data)

    {

    ...........

    })

    $.getScript的使用

    重新请求Js可以使用在JS嵌套使用中

    例:

    $.getScript("/js/JsonData.js?number=" + Math.random(), function () {
    $('#calendar').fullCalendar({
    theme: true,
    header: {
    left: '',
    center: 'title',
    right: ''
    },
    editable: true,
    events: DataS
    });
    });

    参数 dataS就是存放在JsonData.JS中的 var dataS ="*************"

  • 相关阅读:
    隔离级别
    cookie
    session
    正则表达式
    hello2源代码解析
    servlet_filter简介
    web.xml
    Annotations
    Java design patterna
    CDI Features
  • 原文地址:https://www.cnblogs.com/sunlunhao/p/4585819.html
Copyright © 2011-2022 走看看