会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
浮生若夢♬為歡幾何
Always put yourself in the other's shoes.If you feel that it hurts you,it probably hurts others,too.
博客园
首页
新随笔
联系
订阅
管理
2017年11月19日
[JavaScript] 根据字符串宽度截取字符串
摘要: /** * 根据字符串宽度截取字符串 * @param desc 原始字符串 * @param width 该显示的宽度 * @param fontsize 字体大小 12px * @returns {string} */ function cutStringByWith(desc,width,fontsize) { if($('#word-cut').length==0...
阅读全文
posted @ 2017-11-19 20:23 晏过留痕
阅读(2483)
评论(0)
推荐(0)
编辑