sipml5-master.zip

  • 黑黑黑黑
    了解作者
  • JavaScript
    开发工具
  • 9.5MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 1
    下载次数
  • 2019-03-18 11:15
    上传日期
使用web方式连接asterisk,基于web方式实现通话
sipml5-master.zip
内容介绍
## 2.0 BOOTSTRAP JS PHILOSOPHY These are the high-level design rules which guide the development of Bootstrap's plugin apis. --- ### DATA-ATTRIBUTE API We believe you should be able to use all plugins provided by Bootstrap purely through the markup API without writing a single line of javascript. We acknowledge that this isn't always the most performant and sometimes it may be desirable to turn this functionality off altogether. Therefore, as of 2.0 we provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this: $('body').off('.data-api') To target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this: $('body').off('.alert.data-api') --- ### PROGRAMATIC API We also believe you should be able to use all plugins provided by Bootstrap purely through the JS API. All public APIs should be single, chainable methods, and return the collection acted upon. $(".btn.danger").button("toggle").addClass("fat") All methods should accept an optional options object, a string which targets a particular method, or null which initiates the default behavior: $("#myModal").modal() // initialized with defaults $("#myModal").modal({ keyboard: false }) // initialized with now keyboard $("#myModal").modal('show') // initializes and invokes show immediately afterqwe2 --- ### OPTIONS Options should be sparse and add universal value. We should pick the right defaults. All plugins should have a default object which can be modified to effect all instance's default options. The defaults object should be available via `$.fn.plugin.defaults`. $.fn.modal.defaults = { … } An options definition should take the following form: *noun*: *adjective* - describes or modifies a quality of an instance examples: backdrop: true keyboard: false placement: 'top' --- ### EVENTS All events should have an infinitive and past participle form. The infinitive is fired just before an action takes place, the past participle on completion of the action. show | shown hide | hidden --- ### CONSTRUCTORS Each plugin should expose it's raw constructor on a `Constructor` property -- accessed in the following way: $.fn.popover.Constructor --- ### DATA ACCESSOR Each plugin stores a copy of the invoked class on an object. This class instance can be accessed directly through jQuery's data API like this: $('[rel=popover]').data('popover') instanceof $.fn.popover.Constructor --- ### DATA ATTRIBUTES Data attributes should take the following form: - data-{{verb}}={{plugin}} - defines main interaction - data-target || href^=# - defined on "control" element (if element controls an element other than self) - data-{{noun}} - defines class instance options examples: // control other targets data-toggle="modal" data-target="#foo" data-toggle="collapse" data-target="#foo" data-parent="#bar" // defined on element they control data-spy="scroll" data-dismiss="modal" data-dismiss="alert" data-toggle="dropdown" data-toggle="button" data-toggle="buttons-checkbox" data-toggle="buttons-radio"
评论
    相关推荐
    • googlemap(demo).rar
      javascript操作GOOGLEMAP地图所有演示程序
    • Web_Crawler.zip
      c++ spider 源代码 网络爬虫 适合研究搜索引擎
    • swish-efiles.1.3.2.tar.gz
      用C语言写的搜索引擎,包含多种建立索引的方式
    • Internet蜘蛛程序.zip
      Internet蜘蛛程序 所谓蜘蛛即SPIDER! 相信大家都知道是什么意思
    • xunlong0.6.rar
      完整的.net搜索引擎采用LUCENE.net为索引核心,分布式架构.包含wordnet,分词,spider,简单webserver等
    • VM303TXP.rar
      摄像头驱动的重要文件,在安装时可能会提示需要此文件进行安装
    • JQuery_1.4.2_API.rar
      jQuery的1.4.2发布了!jQuer1.4.2版本修复了1.4版本的一些错误和优化了一些不错的改进。
    • websearch.zip
      简单的全路径全文搜索的程序
    • javascript.rar
      一个不错的javascript教程 很适合初学者。 从基础讲其,带实例。很适用
    • madengine.zip
      根据特定URL地址读取所有页面自动建立索引文件的搜索程序