官术网_书友最值得收藏!

Subscribing using the assign method

The assign() method lets you call a function on an object every time an event occurs. It is especially useful to set the content of DOM elements. You can use it to set the value of a DOM object class using jQuery:

observable 
.assign($("#myElement"), "class");
The assign() method is just a synonym for the onValue() method.
主站蜘蛛池模板: 蕲春县| 西林县| 安陆市| 达尔| 乐亭县| 侯马市| 银川市| 乌什县| 安平县| 平罗县| 卢氏县| 花莲县| 射阳县| 道孚县| 卢湾区| 淳化县| 栾城县| 双江| 沭阳县| 云龙县| 上犹县| 莲花县| 都昌县| 张家港市| 汨罗市| 丹江口市| 宿迁市| 德钦县| 茌平县| 牡丹江市| 临泽县| 临夏县| 衡山县| 荆门市| 贵德县| 驻马店市| 盱眙县| 项城市| 洛隆县| 洪洞县| 湘西|