Tangle:能产生数据互动效果的Javascript程序包
Tangle是一个能产生数据互动效果的Javascript程序包,什么叫互动效果,这个解释起来很麻烦,读者也未必一时就能明白,但看一个例子,自己操作一下,我想大家一下就知道这个Javascirpt程序包能做什么了。
那好,把鼠标放在下面有下划线的数据上左右拖动,效果就会出来。
提醒:这些示例不支持低于IE9的IE浏览器
如果你吃了 块饼干 ,你消耗的热量是 大卡。
是不是太简单了,谁都能实现。那么,再看一个复杂点的例子:
下面的这段文字中的所有有下划线的字符都能拖拽。
提案 21:州立停车场的停车费
目前的方式:
加利福尼亚有 个州立停车场,包括海滨和古迹。目前的每年 百万美元的预先不够维持这些停车场。大概有 个停车场只能部分时间里开放。大多数的停车场会向每辆车收取 的管理费。
提案 21的建议是:
向每辆车主收取每年18美元的注册登记费。登记完的车可以免交停车费。
分析:
Suppose that an extra was charged to % of California taxpayersvehicle registrations. Park admission would be for those who paid the chargeeveryone.
This would collect an extralose $ million ($ million from the tax, plusminus $ million additionallostrevenue from admission) for a total state park budget of $ million.
This is not sufficient to maintain the parks, and parks would be shut down at least part-time. This is sufficient to maintain the parks in their current state, but not fund a program to bring safety and cleanliness up to acceptable standards. This is sufficient to maintain the parks in their current state, plus fund a program to bring safety and cleanliness up to acceptable standards over the nextyears. This is sufficient to maintain the parks and bring safety and cleanliness up to acceptable standards, leaving a $ million per year surplus.
Park attendance would risefall by , to million visits each year.
感觉如何?是不是挺神奇的,实际上,这个程序库的官方网站上还有一个更复杂,设计到电路控制图形的例子,有兴趣的朋友可以去看看。
本文出自 传播、沟通、分享,转载时请注明出处及相应链接。
本文永久链接: https://www.nickdd.cn/?p=1806