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

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.
主站蜘蛛池模板: 安阳县| 平凉市| 拜泉县| 桃园县| 东宁县| 古浪县| 长沙县| 陆良县| 房山区| 林甸县| 将乐县| 沁水县| 根河市| 孝昌县| 柘荣县| 吐鲁番市| 子洲县| 唐河县| 昌都县| 陕西省| 观塘区| 盖州市| 石棉县| 合水县| 洛浦县| 哈密市| 同江市| 澳门| 青冈县| 镇原县| 东城区| 定结县| 育儿| 镇远县| 江口县| 章丘市| 大连市| 唐河县| 沾益县| 吴堡县| 云龙县|